From 3f0b785ebbf848280ade0c9477442a41e7b876e5 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Fri, 18 Aug 2023 08:27:52 +0700 Subject: [PATCH] UBER-740 Remove Move action (#3601) --- models/task/src/plugin.ts | 3 +-- models/tracker/src/index.ts | 3 ++- plugins/task/src/index.ts | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/models/task/src/plugin.ts b/models/task/src/plugin.ts index 6fdbcc1d9d..6f65c08f2a 100644 --- a/models/task/src/plugin.ts +++ b/models/task/src/plugin.ts @@ -27,8 +27,7 @@ export default mergeIds(taskId, task, { EditStatuses: '' as Ref, ArchiveSpace: '' as Ref, UnarchiveSpace: '' as Ref, - ArchiveState: '' as Ref, - Move: '' as Ref + ArchiveState: '' as Ref }, actionImpl: { EditStatuses: '' as ViewAction, diff --git a/models/tracker/src/index.ts b/models/tracker/src/index.ts index 5d88c0c832..6e8865604f 100644 --- a/models/tracker/src/index.ts +++ b/models/tracker/src/index.ts @@ -1805,7 +1805,8 @@ export function createModel (builder: Builder): void { mode: ['context', 'browser'], application: tracker.app.Tracker, group: 'associate' - } + }, + override: [task.action.Move] }, tracker.action.MoveToProject ) diff --git a/plugins/task/src/index.ts b/plugins/task/src/index.ts index d49bbbe626..a79c6db309 100644 --- a/plugins/task/src/index.ts +++ b/plugins/task/src/index.ts @@ -32,7 +32,7 @@ import { NotificationType } from '@hcengineering/notification' import type { Asset, IntlString, Plugin } from '@hcengineering/platform' import { plugin } from '@hcengineering/platform' import type { AnyComponent } from '@hcengineering/ui' -import { ViewletDescriptor } from '@hcengineering/view' +import { Action, ViewletDescriptor } from '@hcengineering/view' import { genRanks } from './utils' /** @@ -201,6 +201,9 @@ const task = plugin(taskId, { app: { Tasks: '' as Ref }, + action: { + Move: '' as Ref + }, mixin: { KanbanCard: '' as Ref> },