Skip to content

Commit

Permalink
[improvenments ] change type of some variables
Browse files Browse the repository at this point in the history
  • Loading branch information
samyemad committed Oct 12, 2023
1 parent 723a917 commit ad8a65c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Resources/public/js/pimcore/perspective/perspective.js
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,8 @@ pimcore.bundle.perspectiveeditor.PerspectiveEditor = class {
if(!config.treeContextMenu){
config.treeContextMenu = {};
}
let elementTreeTypeStoreId = 'perspective_editor_element_tree_type_store';
let elementTreeTypeStore = new Ext.data.Store({
const elementTreeTypeStoreId = 'perspective_editor_element_tree_type_store';
const elementTreeTypeStore = new Ext.data.Store({
fields: ['name', 'value'],
id: elementTreeTypeStoreId,
data: [
Expand Down Expand Up @@ -769,8 +769,8 @@ pimcore.bundle.perspectiveeditor.PerspectiveEditor = class {
const addPerspectiveEditorElementTreeIcon = new CustomEvent(pimcore.events.addPerspectiveEditorElementTreeIcon);
addPerspectiveEditorElementTreeIcon.data = elementTreeIcons;
document.dispatchEvent(addPerspectiveEditorElementTreeIcon);
let elementTreeSettingsFormId = 'perspective_element_tree_settings_form';
let elementTreeSettingsForm = new Ext.form.Panel({
const elementTreeSettingsFormId = 'perspective_element_tree_settings_form';
const elementTreeSettingsForm = new Ext.form.Panel({
disabled: !record.data["writeable"],
id: elementTreeSettingsFormId,
title: t('plugin_pimcore_perspectiveeditor_tree_element_selection'),
Expand All @@ -790,8 +790,8 @@ pimcore.bundle.perspectiveeditor.PerspectiveEditor = class {
change: function(elem, newValue, oldValue){
config.type = newValue;
Ext.each(elementTreeSettingsForm.query('[name^=perspective_editor]'), function(component) {
let componentName = 'perspective_editor_'+newValue;
component.setHidden(component.name == componentName ? false : true);
let componentName = 'perspective_editor_' + newValue;
component.setHidden(component.name !== componentName);
});
record.data.text = t(newValue);
record.data.iconCls = elementTreeIcons[newValue];
Expand Down

0 comments on commit ad8a65c

Please sign in to comment.