diff options
author | Abyss777 <abyss@fox5.ru> | 2017-03-28 17:00:40 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-03-28 17:00:40 +0500 |
commit | 6f0bcddcac9a2ec711f545f1278a4ec991d05aa6 (patch) | |
tree | e224b0867554d64ba7c2a985c1ceaab529a075d1 /web/app/view | |
parent | 69291297bab7e61af8596f6cca425fadbaf1304f (diff) | |
download | trackermap-web-6f0bcddcac9a2ec711f545f1278a4ec991d05aa6.tar.gz trackermap-web-6f0bcddcac9a2ec711f545f1278a4ec991d05aa6.tar.bz2 trackermap-web-6f0bcddcac9a2ec711f545f1278a4ec991d05aa6.zip |
Remove Dialog from names
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/AttributeAliasesController.js | 6 | ||||
-rw-r--r-- | web/app/view/AttributesController.js | 4 | ||||
-rw-r--r-- | web/app/view/CalendarsController.js | 4 | ||||
-rw-r--r-- | web/app/view/DevicesController.js | 8 | ||||
-rw-r--r-- | web/app/view/GeofencesController.js | 4 | ||||
-rw-r--r-- | web/app/view/GroupsController.js | 4 | ||||
-rw-r--r-- | web/app/view/ReportController.js | 4 | ||||
-rw-r--r-- | web/app/view/SettingsMenuController.js | 12 | ||||
-rw-r--r-- | web/app/view/StateController.js | 4 | ||||
-rw-r--r-- | web/app/view/UsersController.js | 8 | ||||
-rw-r--r-- | web/app/view/dialog/Attribute.js (renamed from web/app/view/dialog/AttributeDialog.js) | 6 | ||||
-rw-r--r-- | web/app/view/dialog/AttributeAlias.js (renamed from web/app/view/dialog/AttributeAliasDialog.js) | 6 | ||||
-rw-r--r-- | web/app/view/dialog/AttributeController.js | 2 | ||||
-rw-r--r-- | web/app/view/dialog/Base.js (renamed from web/app/view/dialog/BaseDialog.js) | 2 | ||||
-rw-r--r-- | web/app/view/dialog/BaseEdit.js (renamed from web/app/view/dialog/BaseEditDialog.js) | 8 | ||||
-rw-r--r-- | web/app/view/dialog/BaseEditController.js (renamed from web/app/view/dialog/BaseEditDialogController.js) | 4 | ||||
-rw-r--r-- | web/app/view/dialog/Calendar.js (renamed from web/app/view/dialog/CalendarDialog.js) | 8 | ||||
-rw-r--r-- | web/app/view/dialog/CalendarController.js (renamed from web/app/view/dialog/CalendarDialogController.js) | 6 | ||||
-rw-r--r-- | web/app/view/dialog/Command.js (renamed from web/app/view/dialog/CommandDialog.js) | 8 | ||||
-rw-r--r-- | web/app/view/dialog/CommandController.js (renamed from web/app/view/dialog/CommandDialogController.js) | 4 | ||||
-rw-r--r-- | web/app/view/dialog/Device.js (renamed from web/app/view/dialog/DeviceDialog.js) | 4 | ||||
-rw-r--r-- | web/app/view/dialog/DeviceDistance.js (renamed from web/app/view/dialog/DeviceDistanceDialog.js) | 6 | ||||
-rw-r--r-- | web/app/view/dialog/DeviceDistanceController.js | 2 | ||||
-rw-r--r-- | web/app/view/dialog/Geofence.js (renamed from web/app/view/dialog/GeofenceDialog.js) | 8 | ||||
-rw-r--r-- | web/app/view/dialog/GeofenceController.js (renamed from web/app/view/dialog/GeofenceDialogController.js) | 6 | ||||
-rw-r--r-- | web/app/view/dialog/Group.js (renamed from web/app/view/dialog/GroupDialog.js) | 4 | ||||
-rw-r--r-- | web/app/view/dialog/Login.js | 2 | ||||
-rw-r--r-- | web/app/view/dialog/MapPickerController.js (renamed from web/app/view/dialog/MapPickerDialogController.js) | 6 | ||||
-rw-r--r-- | web/app/view/dialog/Register.js | 2 | ||||
-rw-r--r-- | web/app/view/dialog/ReportConfig.js (renamed from web/app/view/dialog/ReportConfigDialog.js) | 6 | ||||
-rw-r--r-- | web/app/view/dialog/ReportConfigController.js | 2 | ||||
-rw-r--r-- | web/app/view/dialog/Server.js (renamed from web/app/view/dialog/ServerDialog.js) | 8 | ||||
-rw-r--r-- | web/app/view/dialog/User.js (renamed from web/app/view/dialog/UserDialog.js) | 8 | ||||
-rw-r--r-- | web/app/view/dialog/UserController.js (renamed from web/app/view/dialog/UserDialogController.js) | 6 |
34 files changed, 91 insertions, 91 deletions
diff --git a/web/app/view/AttributeAliasesController.js b/web/app/view/AttributeAliasesController.js index 36684077..3ebbc9af 100644 --- a/web/app/view/AttributeAliasesController.js +++ b/web/app/view/AttributeAliasesController.js @@ -21,12 +21,12 @@ Ext.define('Traccar.view.AttributeAliasesController', { alias: 'controller.attributeAliases', requires: [ - 'Traccar.view.dialog.AttributeAliasDialog', + 'Traccar.view.dialog.AttributeAlias', 'Traccar.model.AttributeAlias' ], objectModel: 'Traccar.model.AttributeAlias', - objectDialog: 'Traccar.view.dialog.AttributeAliasDialog', + objectDialog: 'Traccar.view.dialog.AttributeAlias', removeTitle: Strings.sharedAttributeAlias, init: function () { @@ -48,7 +48,7 @@ Ext.define('Traccar.view.AttributeAliasesController', { attributeAlias.store = Ext.getStore('AttributeAliases'); deviceId = this.lookupReference('deviceField').getValue(); attributeAlias.set('deviceId', deviceId); - dialog = Ext.create('Traccar.view.dialog.AttributeAliasDialog'); + dialog = Ext.create('Traccar.view.dialog.AttributeAlias'); dialog.down('form').loadRecord(attributeAlias); dialog.show(); }, diff --git a/web/app/view/AttributesController.js b/web/app/view/AttributesController.js index 96efee71..fe0c3153 100644 --- a/web/app/view/AttributesController.js +++ b/web/app/view/AttributesController.js @@ -20,13 +20,13 @@ Ext.define('Traccar.view.AttributesController', { alias: 'controller.attributes', requires: [ - 'Traccar.view.dialog.AttributeDialog', + 'Traccar.view.dialog.Attribute', 'Traccar.store.Attributes', 'Traccar.model.Attribute' ], objectModel: 'Traccar.model.Attribute', - objectDialog: 'Traccar.view.dialog.AttributeDialog', + objectDialog: 'Traccar.view.dialog.Attribute', removeTitle: Strings.stateName, init: function () { diff --git a/web/app/view/CalendarsController.js b/web/app/view/CalendarsController.js index 7cb3fe5a..668fbd0c 100644 --- a/web/app/view/CalendarsController.js +++ b/web/app/view/CalendarsController.js @@ -21,12 +21,12 @@ Ext.define('Traccar.view.CalendarsController', { alias: 'controller.calendars', requires: [ - 'Traccar.view.dialog.CalendarDialog', + 'Traccar.view.dialog.Calendar', 'Traccar.model.Calendar' ], objectModel: 'Traccar.model.Calendar', - objectDialog: 'Traccar.view.dialog.CalendarDialog', + objectDialog: 'Traccar.view.dialog.Calendar', removeTitle: Strings.sharedCalendar }); diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js index 5442f545..9d426911 100644 --- a/web/app/view/DevicesController.js +++ b/web/app/view/DevicesController.js @@ -20,8 +20,8 @@ Ext.define('Traccar.view.DevicesController', { alias: 'controller.devices', requires: [ - 'Traccar.view.dialog.CommandDialog', - 'Traccar.view.dialog.DeviceDialog', + 'Traccar.view.dialog.Command', + 'Traccar.view.dialog.Device', 'Traccar.view.DeviceGeofences', 'Traccar.view.BaseWindow', 'Traccar.model.Device', @@ -48,7 +48,7 @@ Ext.define('Traccar.view.DevicesController', { }, objectModel: 'Traccar.model.Device', - objectDialog: 'Traccar.view.dialog.DeviceDialog', + objectDialog: 'Traccar.view.dialog.Device', removeTitle: Strings.sharedDevice, init: function () { @@ -83,7 +83,7 @@ Ext.define('Traccar.view.DevicesController', { command.set('deviceId', deviceId); command.set('textChannel', !online); - dialog = Ext.create('Traccar.view.dialog.CommandDialog'); + dialog = Ext.create('Traccar.view.dialog.Command'); typesStore = dialog.lookupReference('commandType').getStore(); typesStore.getProxy().setExtraParam('deviceId', deviceId); diff --git a/web/app/view/GeofencesController.js b/web/app/view/GeofencesController.js index 17fb6665..80bb6718 100644 --- a/web/app/view/GeofencesController.js +++ b/web/app/view/GeofencesController.js @@ -20,11 +20,11 @@ Ext.define('Traccar.view.GeofencesController', { alias: 'controller.geofences', requires: [ - 'Traccar.view.dialog.GeofenceDialog', + 'Traccar.view.dialog.Geofence', 'Traccar.model.Geofence' ], objectModel: 'Traccar.model.Geofence', - objectDialog: 'Traccar.view.dialog.GeofenceDialog', + objectDialog: 'Traccar.view.dialog.Geofence', removeTitle: Strings.sharedGeofence }); diff --git a/web/app/view/GroupsController.js b/web/app/view/GroupsController.js index 3e44329e..471e4952 100644 --- a/web/app/view/GroupsController.js +++ b/web/app/view/GroupsController.js @@ -20,14 +20,14 @@ Ext.define('Traccar.view.GroupsController', { alias: 'controller.groups', requires: [ - 'Traccar.view.dialog.GroupDialog', + 'Traccar.view.dialog.Group', 'Traccar.view.GroupGeofences', 'Traccar.view.BaseWindow', 'Traccar.model.Group' ], objectModel: 'Traccar.model.Group', - objectDialog: 'Traccar.view.dialog.GroupDialog', + objectDialog: 'Traccar.view.dialog.Group', removeTitle: Strings.groupDialog, onGeofencesClick: function () { diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js index 7dc5f654..e8955a8c 100644 --- a/web/app/view/ReportController.js +++ b/web/app/view/ReportController.js @@ -24,7 +24,7 @@ Ext.define('Traccar.view.ReportController', { 'Traccar.AttributeFormatter', 'Traccar.model.Position', 'Traccar.model.ReportTrip', - 'Traccar.view.dialog.ReportConfigDialog', + 'Traccar.view.dialog.ReportConfig', 'Traccar.store.ReportEventTypes' ], @@ -65,7 +65,7 @@ Ext.define('Traccar.view.ReportController', { }, onConfigureClick: function () { - var dialog = Ext.create('Traccar.view.dialog.ReportConfigDialog'); + var dialog = Ext.create('Traccar.view.dialog.ReportConfig'); dialog.lookupReference('eventTypeField').setHidden(this.lookupReference('reportTypeField').getValue() !== 'events'); dialog.lookupReference('chartTypeField').setHidden(this.lookupReference('reportTypeField').getValue() !== 'chart'); dialog.callingPanel = this; diff --git a/web/app/view/SettingsMenuController.js b/web/app/view/SettingsMenuController.js index 8e818d77..8147bbe6 100644 --- a/web/app/view/SettingsMenuController.js +++ b/web/app/view/SettingsMenuController.js @@ -21,15 +21,15 @@ Ext.define('Traccar.view.SettingsMenuController', { requires: [ 'Traccar.view.dialog.LoginController', - 'Traccar.view.dialog.UserDialog', - 'Traccar.view.dialog.ServerDialog', + 'Traccar.view.dialog.User', + 'Traccar.view.dialog.Server', 'Traccar.view.Users', 'Traccar.view.Groups', 'Traccar.view.Geofences', 'Traccar.view.Notifications', 'Traccar.view.AttributeAliases', 'Traccar.view.Statistics', - 'Traccar.view.dialog.DeviceDistanceDialog', + 'Traccar.view.dialog.DeviceDistance', 'Traccar.view.Calendars', 'Traccar.view.BaseWindow' ], @@ -61,7 +61,7 @@ Ext.define('Traccar.view.SettingsMenuController', { }, onUserClick: function () { - var dialog = Ext.create('Traccar.view.dialog.UserDialog', { + var dialog = Ext.create('Traccar.view.dialog.User', { selfEdit: true }); dialog.down('form').loadRecord(Traccar.app.getUser()); @@ -90,7 +90,7 @@ Ext.define('Traccar.view.SettingsMenuController', { }, onServerClick: function () { - var dialog = Ext.create('Traccar.view.dialog.ServerDialog'); + var dialog = Ext.create('Traccar.view.dialog.Server'); dialog.down('form').loadRecord(Traccar.app.getServer()); dialog.show(); }, @@ -138,7 +138,7 @@ Ext.define('Traccar.view.SettingsMenuController', { }, onDeviceDistanceClick: function () { - var dialog = Ext.create('Traccar.view.dialog.DeviceDistanceDialog'); + var dialog = Ext.create('Traccar.view.dialog.DeviceDistance'); dialog.show(); }, diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js index 40362e85..f0370f96 100644 --- a/web/app/view/StateController.js +++ b/web/app/view/StateController.js @@ -24,7 +24,7 @@ Ext.define('Traccar.view.StateController', { 'Traccar.model.Attribute', 'Traccar.model.AttributeAlias', 'Traccar.model.Position', - 'Traccar.view.dialog.AttributeAliasDialog' + 'Traccar.view.dialog.AttributeAlias' ], @@ -192,7 +192,7 @@ Ext.define('Traccar.view.StateController', { }); attributeAlias.store = this.aliasesStore; } - dialog = Ext.create('Traccar.view.dialog.AttributeAliasDialog'); + dialog = Ext.create('Traccar.view.dialog.AttributeAlias'); dialog.down('form').loadRecord(attributeAlias); dialog.show(); }, diff --git a/web/app/view/UsersController.js b/web/app/view/UsersController.js index 365b3583..eaae230c 100644 --- a/web/app/view/UsersController.js +++ b/web/app/view/UsersController.js @@ -21,7 +21,7 @@ Ext.define('Traccar.view.UsersController', { alias: 'controller.users', requires: [ - 'Traccar.view.dialog.UserDialog', + 'Traccar.view.dialog.User', 'Traccar.view.UserDevices', 'Traccar.view.UserGroups', 'Traccar.view.UserGeofences', @@ -33,7 +33,7 @@ Ext.define('Traccar.view.UsersController', { ], objectModel: 'Traccar.model.User', - objectDialog: 'Traccar.view.dialog.UserDialog', + objectDialog: 'Traccar.view.dialog.User', removeTitle: Strings.settingsUser, init: function () { @@ -43,7 +43,7 @@ Ext.define('Traccar.view.UsersController', { onEditClick: function () { var dialog, user = this.getView().getSelectionModel().getSelection()[0]; - dialog = Ext.create('Traccar.view.dialog.UserDialog', { + dialog = Ext.create('Traccar.view.dialog.User', { selfEdit: user.get('id') === Traccar.app.getUser().get('id') }); dialog.down('form').loadRecord(user); @@ -59,7 +59,7 @@ Ext.define('Traccar.view.UsersController', { if (Traccar.app.getUser().get('expirationTime')) { user.set('expirationTime', Traccar.app.getUser().get('expirationTime')); } - dialog = Ext.create('Traccar.view.UserDialog'); + dialog = Ext.create('Traccar.view.dialog.User'); dialog.down('form').loadRecord(user); dialog.show(); }, diff --git a/web/app/view/dialog/AttributeDialog.js b/web/app/view/dialog/Attribute.js index 2dc851fd..993c2b12 100644 --- a/web/app/view/dialog/AttributeDialog.js +++ b/web/app/view/dialog/Attribute.js @@ -15,14 +15,14 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.AttributeDialog', { - extend: 'Traccar.view.dialog.BaseDialog', +Ext.define('Traccar.view.dialog.Attribute', { + extend: 'Traccar.view.dialog.Base', requires: [ 'Traccar.view.dialog.AttributeController' ], - controller: 'attributeDialog', + controller: 'attribute', title: Strings.sharedAttribute, items: { diff --git a/web/app/view/dialog/AttributeAliasDialog.js b/web/app/view/dialog/AttributeAlias.js index a8a6b82c..6072a306 100644 --- a/web/app/view/dialog/AttributeAliasDialog.js +++ b/web/app/view/dialog/AttributeAlias.js @@ -16,14 +16,14 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.AttributeAliasDialog', { - extend: 'Traccar.view.dialog.BaseDialog', +Ext.define('Traccar.view.dialog.AttributeAlias', { + extend: 'Traccar.view.dialog.Base', requires: [ 'Traccar.view.dialog.AttributeController' ], - controller: 'attributeDialog', + controller: 'attribute', title: Strings.sharedAttributeAlias, items: { diff --git a/web/app/view/dialog/AttributeController.js b/web/app/view/dialog/AttributeController.js index cd6fc61e..365a0df5 100644 --- a/web/app/view/dialog/AttributeController.js +++ b/web/app/view/dialog/AttributeController.js @@ -17,7 +17,7 @@ Ext.define('Traccar.view.dialog.AttributeController', { extend: 'Ext.app.ViewController', - alias: 'controller.attributeDialog', + alias: 'controller.attribute', onSaveClick: function (button) { var dialog, store, record; diff --git a/web/app/view/dialog/BaseDialog.js b/web/app/view/dialog/Base.js index 71fa6b32..5aad254d 100644 --- a/web/app/view/dialog/BaseDialog.js +++ b/web/app/view/dialog/Base.js @@ -15,7 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.BaseDialog', { +Ext.define('Traccar.view.dialog.Base', { extend: 'Ext.window.Window', bodyPadding: Traccar.Style.normalPadding, diff --git a/web/app/view/dialog/BaseEditDialog.js b/web/app/view/dialog/BaseEdit.js index f1314a96..362823e3 100644 --- a/web/app/view/dialog/BaseEditDialog.js +++ b/web/app/view/dialog/BaseEdit.js @@ -15,14 +15,14 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.BaseEditDialog', { - extend: 'Traccar.view.dialog.BaseDialog', +Ext.define('Traccar.view.dialog.BaseEdit', { + extend: 'Traccar.view.dialog.Base', requires: [ - 'Traccar.view.dialog.BaseEditDialogController' + 'Traccar.view.dialog.BaseEditController' ], - controller: 'baseEditDialog', + controller: 'baseEdit', buttons: [{ text: Strings.sharedAttributes, diff --git a/web/app/view/dialog/BaseEditDialogController.js b/web/app/view/dialog/BaseEditController.js index cc92c6f8..287893b0 100644 --- a/web/app/view/dialog/BaseEditDialogController.js +++ b/web/app/view/dialog/BaseEditController.js @@ -15,9 +15,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.BaseEditDialogController', { +Ext.define('Traccar.view.dialog.BaseEditController', { extend: 'Ext.app.ViewController', - alias: 'controller.baseEditDialog', + alias: 'controller.baseEdit', requires: [ 'Traccar.view.BaseWindow', diff --git a/web/app/view/dialog/CalendarDialog.js b/web/app/view/dialog/Calendar.js index 7b233404..9880d4e6 100644 --- a/web/app/view/dialog/CalendarDialog.js +++ b/web/app/view/dialog/Calendar.js @@ -16,14 +16,14 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.CalendarDialog', { - extend: 'Traccar.view.dialog.BaseEditDialog', +Ext.define('Traccar.view.dialog.Calendar', { + extend: 'Traccar.view.dialog.BaseEdit', requires: [ - 'Traccar.view.dialog.CalendarDialogController' + 'Traccar.view.dialog.CalendarController' ], - controller: 'calendarDialog', + controller: 'calendar', title: Strings.sharedCalendar, items: { diff --git a/web/app/view/dialog/CalendarDialogController.js b/web/app/view/dialog/CalendarController.js index b041c85e..14d8294a 100644 --- a/web/app/view/dialog/CalendarDialogController.js +++ b/web/app/view/dialog/CalendarController.js @@ -16,9 +16,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.CalendarDialogController', { - extend: 'Traccar.view.dialog.BaseEditDialogController', - alias: 'controller.calendarDialog', +Ext.define('Traccar.view.dialog.CalendarController', { + extend: 'Traccar.view.dialog.BaseEditController', + alias: 'controller.calendar', onFileChange: function (fileField) { var reader; diff --git a/web/app/view/dialog/CommandDialog.js b/web/app/view/dialog/Command.js index e02e1277..ec98b29f 100644 --- a/web/app/view/dialog/CommandDialog.js +++ b/web/app/view/dialog/Command.js @@ -15,14 +15,14 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.CommandDialog', { - extend: 'Traccar.view.dialog.BaseDialog', +Ext.define('Traccar.view.dialog.Command', { + extend: 'Traccar.view.dialog.Base', requires: [ - 'Traccar.view.dialog.CommandDialogController' + 'Traccar.view.dialog.CommandController' ], - controller: 'commandDialog', + controller: 'command', title: Strings.commandTitle, items: { diff --git a/web/app/view/dialog/CommandDialogController.js b/web/app/view/dialog/CommandController.js index a4b6c0d3..be6245b0 100644 --- a/web/app/view/dialog/CommandDialogController.js +++ b/web/app/view/dialog/CommandController.js @@ -15,9 +15,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.CommandDialogController', { +Ext.define('Traccar.view.dialog.CommandController', { extend: 'Ext.app.ViewController', - alias: 'controller.commandDialog', + alias: 'controller.command', onSelect: function (selected) { this.lookupReference('paramPositionPeriodic').setHidden( diff --git a/web/app/view/dialog/DeviceDialog.js b/web/app/view/dialog/Device.js index d1b067fd..bd4a1286 100644 --- a/web/app/view/dialog/DeviceDialog.js +++ b/web/app/view/dialog/Device.js @@ -15,8 +15,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.DeviceDialog', { - extend: 'Traccar.view.dialog.BaseEditDialog', +Ext.define('Traccar.view.dialog.Device', { + extend: 'Traccar.view.dialog.BaseEdit', title: Strings.sharedDevice, diff --git a/web/app/view/dialog/DeviceDistanceDialog.js b/web/app/view/dialog/DeviceDistance.js index 29738463..14a795ad 100644 --- a/web/app/view/dialog/DeviceDistanceDialog.js +++ b/web/app/view/dialog/DeviceDistance.js @@ -16,14 +16,14 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.DeviceDistanceDialog', { - extend: 'Traccar.view.dialog.BaseDialog', +Ext.define('Traccar.view.dialog.DeviceDistance', { + extend: 'Traccar.view.dialog.Base', requires: [ 'Traccar.view.dialog.DeviceDistanceController' ], - controller: 'deviceDistanceDialog', + controller: 'deviceDistance', title: Strings.sharedDeviceDistance, items: [{ diff --git a/web/app/view/dialog/DeviceDistanceController.js b/web/app/view/dialog/DeviceDistanceController.js index a7c33b99..fd106a8d 100644 --- a/web/app/view/dialog/DeviceDistanceController.js +++ b/web/app/view/dialog/DeviceDistanceController.js @@ -18,7 +18,7 @@ Ext.define('Traccar.view.dialog.DeviceDistanceController', { extend: 'Ext.app.ViewController', - alias: 'controller.deviceDistanceDialog', + alias: 'controller.deviceDistance', onDeviceChange: function (combobox, newValue) { this.lookupReference('setButton').setDisabled(newValue === null); diff --git a/web/app/view/dialog/GeofenceDialog.js b/web/app/view/dialog/Geofence.js index bf93e7c1..93f17de5 100644 --- a/web/app/view/dialog/GeofenceDialog.js +++ b/web/app/view/dialog/Geofence.js @@ -15,14 +15,14 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.GeofenceDialog', { - extend: 'Traccar.view.dialog.BaseEditDialog', +Ext.define('Traccar.view.dialog.Geofence', { + extend: 'Traccar.view.dialog.BaseEdit', requires: [ - 'Traccar.view.dialog.GeofenceDialogController' + 'Traccar.view.dialog.GeofenceController' ], - controller: 'geofenceDialog', + controller: 'geofence', title: Strings.sharedGeofence, items: { diff --git a/web/app/view/dialog/GeofenceDialogController.js b/web/app/view/dialog/GeofenceController.js index b38dd15f..9fdad61b 100644 --- a/web/app/view/dialog/GeofenceDialogController.js +++ b/web/app/view/dialog/GeofenceController.js @@ -15,9 +15,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.GeofenceDialogController', { - extend: 'Traccar.view.dialog.BaseEditDialogController', - alias: 'controller.geofenceDialog', +Ext.define('Traccar.view.dialog.GeofenceController', { + extend: 'Traccar.view.dialog.BaseEditController', + alias: 'controller.geofence', requires: [ 'Traccar.view.BaseWindow', diff --git a/web/app/view/dialog/GroupDialog.js b/web/app/view/dialog/Group.js index 366bb43f..1f351a54 100644 --- a/web/app/view/dialog/GroupDialog.js +++ b/web/app/view/dialog/Group.js @@ -15,8 +15,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.GroupDialog', { - extend: 'Traccar.view.dialog.BaseEditDialog', +Ext.define('Traccar.view.dialog.Group', { + extend: 'Traccar.view.dialog.BaseEdit', title: Strings.groupDialog, diff --git a/web/app/view/dialog/Login.js b/web/app/view/dialog/Login.js index fbdc2b16..5a0695ee 100644 --- a/web/app/view/dialog/Login.js +++ b/web/app/view/dialog/Login.js @@ -16,7 +16,7 @@ */ Ext.define('Traccar.view.dialog.Login', { - extend: 'Traccar.view.dialog.BaseDialog', + extend: 'Traccar.view.dialog.Base', alias: 'widget.login', requires: [ diff --git a/web/app/view/dialog/MapPickerDialogController.js b/web/app/view/dialog/MapPickerController.js index 689449b1..23f60ece 100644 --- a/web/app/view/dialog/MapPickerDialogController.js +++ b/web/app/view/dialog/MapPickerController.js @@ -16,9 +16,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.MapPickerDialogController', { - extend: 'Traccar.view.dialog.BaseEditDialogController', - alias: 'controller.mapPickerDialog', +Ext.define('Traccar.view.dialog.MapPickerController', { + extend: 'Traccar.view.dialog.BaseEditController', + alias: 'controller.mapPicker', config: { listen: { diff --git a/web/app/view/dialog/Register.js b/web/app/view/dialog/Register.js index 235e4805..f4f5a395 100644 --- a/web/app/view/dialog/Register.js +++ b/web/app/view/dialog/Register.js @@ -16,7 +16,7 @@ */ Ext.define('Traccar.view.dialog.Register', { - extend: 'Traccar.view.dialog.BaseDialog', + extend: 'Traccar.view.dialog.Base', requires: [ 'Traccar.view.dialog.RegisterController' diff --git a/web/app/view/dialog/ReportConfigDialog.js b/web/app/view/dialog/ReportConfig.js index b63e88cd..b8493cbb 100644 --- a/web/app/view/dialog/ReportConfigDialog.js +++ b/web/app/view/dialog/ReportConfig.js @@ -16,15 +16,15 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.ReportConfigDialog', { - extend: 'Traccar.view.dialog.BaseDialog', +Ext.define('Traccar.view.dialog.ReportConfig', { + extend: 'Traccar.view.dialog.Base', requires: [ 'Traccar.view.dialog.ReportConfigController', 'Traccar.view.CustomTimeField' ], - controller: 'reportConfigDialog', + controller: 'reportConfig', title: Strings.reportConfigure, items: [{ diff --git a/web/app/view/dialog/ReportConfigController.js b/web/app/view/dialog/ReportConfigController.js index ccf78987..7233562b 100644 --- a/web/app/view/dialog/ReportConfigController.js +++ b/web/app/view/dialog/ReportConfigController.js @@ -18,7 +18,7 @@ Ext.define('Traccar.view.dialog.ReportConfigController', { extend: 'Ext.app.ViewController', - alias: 'controller.reportConfigDialog', + alias: 'controller.reportConfig', requires: [ 'Traccar.store.ReportEventTypes', diff --git a/web/app/view/dialog/ServerDialog.js b/web/app/view/dialog/Server.js index 015335b5..a86b7b77 100644 --- a/web/app/view/dialog/ServerDialog.js +++ b/web/app/view/dialog/Server.js @@ -15,14 +15,14 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.ServerDialog', { - extend: 'Traccar.view.dialog.BaseEditDialog', +Ext.define('Traccar.view.dialog.Server', { + extend: 'Traccar.view.dialog.BaseEdit', requires: [ - 'Traccar.view.dialog.MapPickerDialogController' + 'Traccar.view.dialog.MapPickerController' ], - controller: 'mapPickerDialog', + controller: 'mapPicker', title: Strings.serverTitle, items: { diff --git a/web/app/view/dialog/UserDialog.js b/web/app/view/dialog/User.js index 3c7518f0..344a8f6d 100644 --- a/web/app/view/dialog/UserDialog.js +++ b/web/app/view/dialog/User.js @@ -15,14 +15,14 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.UserDialog', { - extend: 'Traccar.view.dialog.BaseEditDialog', +Ext.define('Traccar.view.dialog.User', { + extend: 'Traccar.view.dialog.BaseEdit', requires: [ - 'Traccar.view.dialog.UserDialogController' + 'Traccar.view.dialog.UserController' ], - controller: 'userDialog', + controller: 'user', title: Strings.settingsUser, items: { diff --git a/web/app/view/dialog/UserDialogController.js b/web/app/view/dialog/UserController.js index c334df7c..89b0bc83 100644 --- a/web/app/view/dialog/UserDialogController.js +++ b/web/app/view/dialog/UserController.js @@ -15,9 +15,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.dialog.UserDialogController', { - extend: 'Traccar.view.dialog.MapPickerDialogController', - alias: 'controller.userDialog', +Ext.define('Traccar.view.dialog.UserController', { + extend: 'Traccar.view.dialog.MapPickerController', + alias: 'controller.user', init: function () { if (Traccar.app.getUser().get('admin')) { |