aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/device/DeviceController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/device/DeviceController.js')
-rw-r--r--web/app/view/device/DeviceController.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/app/view/device/DeviceController.js b/web/app/view/device/DeviceController.js
index c85ac731a..794e0f03d 100644
--- a/web/app/view/device/DeviceController.js
+++ b/web/app/view/device/DeviceController.js
@@ -79,11 +79,17 @@ Ext.define('Traccar.view.device.DeviceController', {
}
});
},
+
+ onCommandClick: function() {
+ var device = this.getView().getSelectionModel().getSelection()[0];
+ console.log('send command here');
+ },
onSelectionChange: function(selected) {
var empty = selected.getCount() === 0;
this.lookupReference('deviceEditButton').setDisabled(empty);
this.lookupReference('deviceRemoveButton').setDisabled(empty);
+ this.lookupReference('deviceCommandButton').setDisabled(empty);
if (!empty) {
this.fireEvent("selectDevice", selected.getLastSelected());
}