aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/DevicesController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/DevicesController.js')
-rw-r--r--web/app/view/DevicesController.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js
index e9a075ffc..10918c13a 100644
--- a/web/app/view/DevicesController.js
+++ b/web/app/view/DevicesController.js
@@ -89,6 +89,13 @@ Ext.define('Traccar.view.DevicesController', {
dialog.show();
},
+ onFollowClick: function (button, pressed) {
+ if (pressed) {
+ var device = this.getView().getSelectionModel().getSelection()[0];
+ this.fireEvent('selectDevice', device, true);
+ }
+ },
+
onSelectionChange: function (selected) {
var empty = selected.getCount() === 0;
this.lookupReference('toolbarEditButton').setDisabled(empty);