diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-23 15:15:37 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-23 15:15:37 +0500 |
commit | f6484e9808f50aa997f028f9421b05aad6aed8bd (patch) | |
tree | 775a0a0bcf6c5b121185011b7d2cdf652eaaf54f /web/app/view/DevicesController.js | |
parent | 21bf1014e55ab8049e18ee991c6ee80b23d1789c (diff) | |
download | trackermap-server-f6484e9808f50aa997f028f9421b05aad6aed8bd.tar.gz trackermap-server-f6484e9808f50aa997f028f9421b05aad6aed8bd.tar.bz2 trackermap-server-f6484e9808f50aa997f028f9421b05aad6aed8bd.zip |
- Hid some buttons and menu items from readonly user
- Removed unused variable
Diffstat (limited to 'web/app/view/DevicesController.js')
-rw-r--r-- | web/app/view/DevicesController.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js index 85aa5fcd4..8058db376 100644 --- a/web/app/view/DevicesController.js +++ b/web/app/view/DevicesController.js @@ -45,6 +45,7 @@ Ext.define('Traccar.view.DevicesController', { this.lookupReference('toolbarAddButton').setVisible(!readonly); this.lookupReference('toolbarEditButton').setVisible(!readonly); this.lookupReference('toolbarRemoveButton').setVisible(!readonly); + this.lookupReference('toolbarGeofencesButton').setVisible(!readonly); }, onAddClick: function () { @@ -86,9 +87,7 @@ Ext.define('Traccar.view.DevicesController', { }, onGeofencesClick: function () { - var admin, device; - admin = Traccar.app.getUser().get('admin'); - device = this.getView().getSelectionModel().getSelection()[0]; + var device = this.getView().getSelectionModel().getSelection()[0]; Ext.create('Traccar.view.BaseWindow', { title: Strings.sharedGeofences, items: { |