From fa5f3054efe7ca926f49f19da45013e1cf1ed81c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 20 Jul 2017 16:10:36 +1200 Subject: Enable edit buttons on selection --- web/app/view/edit/GroupsController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/app/view/edit/GroupsController.js b/web/app/view/edit/GroupsController.js index 34eec8d..9ced956 100644 --- a/web/app/view/edit/GroupsController.js +++ b/web/app/view/edit/GroupsController.js @@ -84,7 +84,7 @@ Ext.define('Traccar.view.edit.GroupsController', { }, onSelectionChange: function (selection, selected) { - var disabled = selected.length > 0; + var disabled = selected.length === 0; this.lookupReference('toolbarGeofencesButton').setDisabled(disabled); this.lookupReference('toolbarAttributesButton').setDisabled(disabled); this.lookupReference('toolbarDriversButton').setDisabled(disabled); -- cgit v1.2.3