TSK-81: Disable State delete action (#2076)

Signed-off-by: Anna No <anna.no@xored.com>
This commit is contained in:
Anna No 2022-06-15 16:44:27 +07:00 committed by GitHub
parent b047d98189
commit 71be3b9b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
})