From 71be3b9b7cf9e112b195b48f27a64c965c81c49d Mon Sep 17 00:00:00 2001 From: Anna No Date: Wed, 15 Jun 2022 16:44:27 +0700 Subject: [PATCH] TSK-81: Disable State delete action (#2076) Signed-off-by: Anna No --- models/task/src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/models/task/src/index.ts b/models/task/src/index.ts index 53360ea833..7ce5697e11 100644 --- a/models/task/src/index.ts +++ b/models/task/src/index.ts @@ -441,6 +441,10 @@ export function createModel (builder: Builder): void { presenter: task.component.StatePresenter }) + builder.mixin(task.class.State, core.class.Class, view.mixin.IgnoreActions, { + actions: [view.action.Delete] + }) + builder.mixin(task.class.DoneState, core.class.Class, view.mixin.AttributeEditor, { editor: task.component.DoneStateEditor })