From c0a7c722f4dc146baa1c9c021e28f41463a2115a Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Tue, 25 Jan 2022 15:50:38 +0700 Subject: [PATCH] Move actions only for Tasks Closes #859 Signed-off-by: Andrey Sobolev --- models/task/src/index.ts | 5 +++++ models/view/src/index.ts | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/models/task/src/index.ts b/models/task/src/index.ts index 47da9eb949..8786881a5b 100644 --- a/models/task/src/index.ts +++ b/models/task/src/index.ts @@ -510,4 +510,9 @@ export function createModel (builder: Builder): void { label: task.string.SearchTask, query: task.completion.IssueQuery }, task.completion.IssueCategory) + + builder.createDoc(view.class.ActionTarget, core.space.Model, { + target: task.class.Task, + action: view.action.Move + }) } diff --git a/models/view/src/index.ts b/models/view/src/index.ts index db9c71a998..8f5c85bf8c 100644 --- a/models/view/src/index.ts +++ b/models/view/src/index.ts @@ -175,11 +175,6 @@ export function createModel (builder: Builder): void { }, view.action.Move ) - - builder.createDoc(view.class.ActionTarget, core.space.Model, { - target: core.class.Doc, - action: view.action.Move - }) } export default view