aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-02-07 15:26:44 +0500
committerAbyss777 <abyss@fox5.ru>2017-02-07 15:26:44 +0500
commit01991bcc64cddd23005210d87594080fe834f64b (patch)
tree91fefec3b3f32f675ea3f54ccbdfca50ab6f5e42 /web
parenta162e2da3e37841a4dab1b3c438992ad01af16db (diff)
downloadtrackermap-web-01991bcc64cddd23005210d87594080fe834f64b.tar.gz
trackermap-web-01991bcc64cddd23005210d87594080fe834f64b.tar.bz2
trackermap-web-01991bcc64cddd23005210d87594080fe834f64b.zip
Hide command button for readonly users
Diffstat (limited to 'web')
-rw-r--r--web/app/view/DevicesController.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js
index cd858341..62853919 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);
},