From 6ad9a3eb441cd35a50e9dee5c04b903e08352bd5 Mon Sep 17 00:00:00 2001 From: Andrii Kalinich Date: Thu, 21 Jan 2021 11:20:14 +0200 Subject: [PATCH 1/3] Rename ccpu editor to versions editor --- app/StateManager.js | 2 +- ...EditorView.js => systemVersionsEditorView.js} | 16 ++++++++-------- app/view/settings/policiesView.js | 2 +- app/view/settingsView.js | 2 +- index.html | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) rename app/view/settings/policies/{ccpuEditorView.js => systemVersionsEditorView.js} (86%) diff --git a/app/StateManager.js b/app/StateManager.js index 9430d0861..10faa97fe 100644 --- a/app/StateManager.js +++ b/app/StateManager.js @@ -198,7 +198,7 @@ var StateManager = Em.StateManager.extend( } } ), - ccpuEditor: Em.State.create( + versionsEditor: Em.State.create( { enter: function() { this._super(); diff --git a/app/view/settings/policies/ccpuEditorView.js b/app/view/settings/policies/systemVersionsEditorView.js similarity index 86% rename from app/view/settings/policies/ccpuEditorView.js rename to app/view/settings/policies/systemVersionsEditorView.js index bd5c8f5c7..0db8d76da 100644 --- a/app/view/settings/policies/ccpuEditorView.js +++ b/app/view/settings/policies/systemVersionsEditorView.js @@ -24,21 +24,21 @@ * POSSIBILITY OF SUCH DAMAGE. */ -SDL.CcpuEditorView = Em.ContainerView.create( +SDL.SystemVersionsEditorView = Em.ContainerView.create( { - elementId: 'policies_settings_ccpu_editor_view', + elementId: 'policies_settings_system_versions_editor_view', classNames: 'in_settings_separate_view', classNameBindings: [ - 'SDL.States.settings.policies.ccpuEditor.active:active_state:inactive_state' + 'SDL.States.settings.policies.versionsEditor.active:active_state:inactive_state' ], childViews: [ - 'ccpuTitle', + 'versionsTitle', 'backButton', 'ccpuVersionLabel', 'ccpuVersionInput', 'applyButton' ], - ccpuTitle: SDL.Label.extend( + versionsTitle: SDL.Label.extend( { classNames: 'label', content: 'Configure CCPU version' @@ -72,10 +72,10 @@ SDL.CcpuEditorView = Em.ContainerView.create( ), applyButton: SDL.Button.extend( { - elementId: 'applyButton', - classNames: 'applyButton button', + elementId: 'systemVersionsApplyButton', + classNames: 'systemVersionsApplyButton button', text: 'Apply', - action: 'applyNewCcpuVersionValue', + action: 'applyNewVersionValues', target: 'SDL.SettingsController', onDown: false } diff --git a/app/view/settings/policiesView.js b/app/view/settings/policiesView.js index 9da817f11..d6036dbcc 100644 --- a/app/view/settings/policiesView.js +++ b/app/view/settings/policiesView.js @@ -87,7 +87,7 @@ SDL.PoliciesView = Em.ContainerView.create( type: SDL.Button, params: { action: 'onState', - goToState: 'policies.ccpuEditor', + goToState: 'policies.versionsEditor', text: 'Configure CCPU version', target: 'SDL.SettingsController', templateName: 'arrow', diff --git a/app/view/settingsView.js b/app/view/settingsView.js index 4fdc518de..fb7c78f67 100644 --- a/app/view/settingsView.js +++ b/app/view/settingsView.js @@ -63,7 +63,7 @@ SDL.SettingsView = Em.ContainerView.create( SDL.ExteriorLightView, SDL.SeatView, SDL.PolicyConfigListView, - SDL.CcpuEditorView + SDL.SystemVersionsEditorView, ], /** Left menu */ leftMenu: Em.ContainerView.extend( diff --git a/index.html b/index.html index 67b62bcd1..bb57dfc32 100644 --- a/index.html +++ b/index.html @@ -240,7 +240,7 @@ - + +