diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-02-07 18:29:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-07 18:29:25 +0800 |
commit | b996d704b99b6f6467e8c5d531538f8c8e7b6cc8 (patch) | |
tree | 91fefec3b3f32f675ea3f54ccbdfca50ab6f5e42 /web/app/view/DevicesController.js | |
parent | a162e2da3e37841a4dab1b3c438992ad01af16db (diff) | |
parent | 01991bcc64cddd23005210d87594080fe834f64b (diff) | |
download | etbsa-traccar-web-b996d704b99b6f6467e8c5d531538f8c8e7b6cc8.tar.gz etbsa-traccar-web-b996d704b99b6f6467e8c5d531538f8c8e7b6cc8.tar.bz2 etbsa-traccar-web-b996d704b99b6f6467e8c5d531538f8c8e7b6cc8.zip |
Merge pull request #402 from Abyss777/commands_readonly
Hide command button for readonly users
Diffstat (limited to 'web/app/view/DevicesController.js')
-rw-r--r-- | web/app/view/DevicesController.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js index cd85834..6285391 100644 --- a/web/app/view/DevicesController.js +++ b/web/app/view/DevicesController.js @@ -58,6 +58,7 @@ Ext.define('Traccar.view.DevicesController', { this.lookupReference('toolbarAddButton').setVisible(!readonly && !deviceReadonly); this.lookupReference('toolbarEditButton').setVisible(!readonly && !deviceReadonly); this.lookupReference('toolbarRemoveButton').setVisible(!readonly && !deviceReadonly); + this.lookupReference('deviceCommandButton').setVisible(!readonly && !deviceReadonly); this.lookupReference('toolbarGeofencesButton').setVisible(!readonly); }, |