fix bug allowing click on disabled actions

This commit is contained in:
Matt Hill
2024-10-17 21:20:46 -06:00
parent 2ba56b8c59
commit c9f3e1bdab
5 changed files with 15 additions and 8 deletions

View File

@@ -1701,7 +1701,7 @@ export module Mock {
description:
'An example of an action that shows a warning and takes no input',
warning: 'careful running this action',
visibility: 'enabled',
visibility: { disabled: 'This is temporarily disabled' },
allowedStatuses: 'only-running',
hasInput: false,
group: null,

View File

@@ -129,7 +129,7 @@ export const mockPatchData: DataModel = {
description:
'An example of an action that shows a warning and takes no input',
warning: 'careful running this action',
visibility: 'enabled',
visibility: { disabled: 'This is temporarily disabled' },
allowedStatuses: 'only-running',
hasInput: false,
group: null,