diff options
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/DeviceMenuController.js | 10 | ||||
-rw-r--r-- | web/app/view/edit/CalendarsController.js | 1 | ||||
-rw-r--r-- | web/app/view/edit/DevicesController.js | 2 | ||||
-rw-r--r-- | web/app/view/edit/DriversController.js | 1 | ||||
-rw-r--r-- | web/app/view/edit/NotificationsController.js | 1 | ||||
-rw-r--r-- | web/app/view/edit/SavedCommandsController.js | 1 |
6 files changed, 6 insertions, 10 deletions
diff --git a/web/app/view/DeviceMenuController.js b/web/app/view/DeviceMenuController.js index 58749a5..4fa00be 100644 --- a/web/app/view/DeviceMenuController.js +++ b/web/app/view/DeviceMenuController.js @@ -45,7 +45,7 @@ Ext.define('Traccar.view.DeviceMenuController', { baseObjectName: 'deviceId', linkObjectName: 'geofenceId', storeName: 'Geofences', - baseObject: this.getView().ownerCmp.device.getId() + baseObject: this.getView().up('deviceMenu').device.getId() } }).show(); }, @@ -58,7 +58,7 @@ Ext.define('Traccar.view.DeviceMenuController', { baseObjectName: 'deviceId', linkObjectName: 'notificationId', storeName: 'Notifications', - baseObject: this.getView().ownerCmp.device.getId() + baseObject: this.getView().up('deviceMenu').device.getId() } }).show(); }, @@ -71,7 +71,7 @@ Ext.define('Traccar.view.DeviceMenuController', { baseObjectName: 'deviceId', linkObjectName: 'attributeId', storeName: 'ComputedAttributes', - baseObject: this.getView().ownerCmp.device.getId() + baseObject: this.getView().up('deviceMenu').device.getId() } }).show(); }, @@ -84,7 +84,7 @@ Ext.define('Traccar.view.DeviceMenuController', { baseObjectName: 'deviceId', linkObjectName: 'driverId', storeName: 'Drivers', - baseObject: this.getView().ownerCmp.device.getId() + baseObject: this.getView().up('deviceMenu').device.getId() } }).show(); }, @@ -97,7 +97,7 @@ Ext.define('Traccar.view.DeviceMenuController', { baseObjectName: 'deviceId', linkObjectName: 'commandId', storeName: 'Commands', - baseObject: this.getView().ownerCmp.device.getId() + baseObject: this.getView().up('deviceMenu').device.getId() } }).show(); } diff --git a/web/app/view/edit/CalendarsController.js b/web/app/view/edit/CalendarsController.js index f582227..d11ec37 100644 --- a/web/app/view/edit/CalendarsController.js +++ b/web/app/view/edit/CalendarsController.js @@ -28,5 +28,4 @@ Ext.define('Traccar.view.edit.CalendarsController', { objectModel: 'Traccar.model.Calendar', objectDialog: 'Traccar.view.dialog.Calendar', removeTitle: Strings.sharedCalendar - }); diff --git a/web/app/view/edit/DevicesController.js b/web/app/view/edit/DevicesController.js index 40202e7..a4bbd4b 100644 --- a/web/app/view/edit/DevicesController.js +++ b/web/app/view/edit/DevicesController.js @@ -106,7 +106,7 @@ Ext.define('Traccar.view.edit.DevicesController', { this.lookupReference('toolbarRemoveButton').setDisabled(empty || readonly || deviceReadonly); deviceMenu = this.lookupReference('toolbarDeviceMenu'); deviceMenu.device = empty ? null : selected[0]; - this.lookupReference('toolbarDeviceMenu').setDisabled(empty); + deviceMenu.setDisabled(empty); this.lookupReference('deviceCommandButton').setDisabled(empty || readonly); }, diff --git a/web/app/view/edit/DriversController.js b/web/app/view/edit/DriversController.js index 2840c2a..6c8a63c 100644 --- a/web/app/view/edit/DriversController.js +++ b/web/app/view/edit/DriversController.js @@ -28,5 +28,4 @@ Ext.define('Traccar.view.edit.DriversController', { objectModel: 'Traccar.model.Driver', objectDialog: 'Traccar.view.dialog.Driver', removeTitle: Strings.sharedDriver - }); diff --git a/web/app/view/edit/NotificationsController.js b/web/app/view/edit/NotificationsController.js index bf6a666..ad22a68 100644 --- a/web/app/view/edit/NotificationsController.js +++ b/web/app/view/edit/NotificationsController.js @@ -28,5 +28,4 @@ Ext.define('Traccar.view.edit.NotificationsController', { objectModel: 'Traccar.model.Notification', objectDialog: 'Traccar.view.dialog.Notification', removeTitle: Strings.sharedNotification - }); diff --git a/web/app/view/edit/SavedCommandsController.js b/web/app/view/edit/SavedCommandsController.js index 989aeab..1511661 100644 --- a/web/app/view/edit/SavedCommandsController.js +++ b/web/app/view/edit/SavedCommandsController.js @@ -28,5 +28,4 @@ Ext.define('Traccar.view.edit.SavedCommandsController', { objectModel: 'Traccar.model.Command', objectDialog: 'Traccar.view.dialog.SavedCommand', removeTitle: Strings.sharedSavedCommand - }); |