aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/DeviceMenuController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/DeviceMenuController.js')
-rw-r--r--web/app/view/DeviceMenuController.js10
1 files changed, 5 insertions, 5 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();
}