diff options
author | Abyss777 <abyss@fox5.ru> | 2016-06-01 09:20:11 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-06-01 09:20:11 +0500 |
commit | ab35686de46a23dd0c7974c6426b3d60eba05228 (patch) | |
tree | e4a6b15745d9fcad61db7499981fb061d1e7e034 /web/app/view/DevicesController.js | |
parent | 3db183a5535a986b015566c6df929da8c6ca9630 (diff) | |
parent | 279948e95f21ffed7f890e5253693a307953d255 (diff) | |
download | trackermap-server-ab35686de46a23dd0c7974c6426b3d60eba05228.tar.gz trackermap-server-ab35686de46a23dd0c7974c6426b3d60eba05228.tar.bz2 trackermap-server-ab35686de46a23dd0c7974c6426b3d60eba05228.zip |
Merge branch 'fix_commandButton'
Diffstat (limited to 'web/app/view/DevicesController.js')
-rw-r--r-- | web/app/view/DevicesController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js index 9dee0ff7c..8c1bba00f 100644 --- a/web/app/view/DevicesController.js +++ b/web/app/view/DevicesController.js @@ -103,7 +103,7 @@ Ext.define('Traccar.view.DevicesController', { var empty = selected.getCount() === 0; this.lookupReference('toolbarEditButton').setDisabled(empty); this.lookupReference('toolbarRemoveButton').setDisabled(empty); - this.lookupReference('deviceCommandButton').setDisabled(empty); + this.lookupReference('deviceCommandButton').setDisabled(empty || (selected.getLastSelected().get('status') !== 'online')); if (!empty) { this.fireEvent('selectDevice', selected.getLastSelected(), true); } |