From de3a9b3cdf1386b72dbd2e3b34d3fe8caa808601 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 18 Jul 2017 21:23:45 +1200 Subject: Enable edit buttons on selection --- web/app/view/edit/ToolbarController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/app/view/edit/ToolbarController.js b/web/app/view/edit/ToolbarController.js index 2b2297a9..d3ca9de6 100644 --- a/web/app/view/edit/ToolbarController.js +++ b/web/app/view/edit/ToolbarController.js @@ -63,7 +63,7 @@ Ext.define('Traccar.view.edit.ToolbarController', { }, onSelectionChange: function (selection, selected) { - var disabled = selected.length > 0; + var disabled = selected.length === 0; this.lookupReference('toolbarEditButton').setDisabled(disabled); this.lookupReference('toolbarRemoveButton').setDisabled(disabled); } -- cgit v1.2.3