diff --git a/src/gui/app/controllers/commands.controller.js b/src/gui/app/controllers/commands.controller.js index 8e88d2400..2246b5c3e 100644 --- a/src/gui/app/controllers/commands.controller.js +++ b/src/gui/app/controllers/commands.controller.js @@ -37,6 +37,15 @@ commandsService.saveCustomCommand(command); }; + $scope.toggleCustomCommandVisibilityState = (command) => { + if (command == null) { + return; + } + + command.hidden = !command.hidden; + commandsService.saveCustomCommand(command); + }; + $scope.deleteCustomCommand = (command) => { utilityService.showConfirmationModal({ title: "Delete Command", @@ -121,6 +130,12 @@ $scope.toggleCustomCommandActiveState(command); } }, + { + html: ``, + click: () => { + $scope.toggleCustomCommandVisibilityState(command); + } + }, { html: ` Duplicate`, click: () => {