From 797e72332e91aca8937df78f7fbc2c4adbf65ab3 Mon Sep 17 00:00:00 2001 From: Alex <41288429+Dvinyanin@users.noreply.github.com> Date: Mon, 2 May 2022 11:24:33 +0700 Subject: [PATCH] Remove watch action (#1619) Signed-off-by: Dvinyanin Alexandr --- models/board/src/index.ts | 13 ------- models/board/src/plugin.ts | 3 +- plugins/board-assets/lang/en.json | 2 -- plugins/board-assets/lang/ru.json | 2 -- .../src/components/WatchCard.svelte | 35 ------------------- plugins/board-resources/src/index.ts | 2 -- plugins/board-resources/src/plugin.ts | 2 -- 7 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 plugins/board-resources/src/components/WatchCard.svelte diff --git a/models/board/src/index.ts b/models/board/src/index.ts index c0fd749bf3..db0ecd50b6 100644 --- a/models/board/src/index.ts +++ b/models/board/src/index.ts @@ -416,19 +416,6 @@ export function createModel (builder: Builder): void { }, board.cardAction.MakeTemplate ) - builder.createDoc( - board.class.CardAction, - core.space.Model, - { - icon: board.icon.Card, - isInline: false, - label: board.string.Watch, - position: 130, - type: board.cardActionType.Action, - component: board.component.WatchCard - }, - board.cardAction.Watch - ) builder.createDoc( board.class.CardAction, core.space.Model, diff --git a/models/board/src/plugin.ts b/models/board/src/plugin.ts index 31614448cb..3eac1af135 100644 --- a/models/board/src/plugin.ts +++ b/models/board/src/plugin.ts @@ -33,8 +33,7 @@ export default mergeIds(boardId, board, { BoardPresenter: '' as AnyComponent, TemplatesIcon: '' as AnyComponent, Cards: '' as AnyComponent, - KanbanView: '' as AnyComponent, - WatchCard: '' as AnyComponent + KanbanView: '' as AnyComponent }, space: { DefaultBoard: '' as Ref diff --git a/plugins/board-assets/lang/en.json b/plugins/board-assets/lang/en.json index e83a29138f..9193ae4aed 100644 --- a/plugins/board-assets/lang/en.json +++ b/plugins/board-assets/lang/en.json @@ -54,8 +54,6 @@ "Move": "Move", "Copy": "Copy", "MakeTemplate": "Make Template", - "Watch": "Watch", - "Unwatch": "Unwatch", "Archive": "Archive", "SendToBoard": "Send to board", "Delete": "Delete", diff --git a/plugins/board-assets/lang/ru.json b/plugins/board-assets/lang/ru.json index 48706fb855..fce41d21b8 100644 --- a/plugins/board-assets/lang/ru.json +++ b/plugins/board-assets/lang/ru.json @@ -54,8 +54,6 @@ "Move": "Переместить", "Copy": "Копировать", "MakeTemplate": "Шаблон", - "Watch": "Отслеживать", - "Unwatch": "Не отслеживать", "Archive": "Архив", "SendToBoard": "Вернуть", "Delete": "Удалить", diff --git a/plugins/board-resources/src/components/WatchCard.svelte b/plugins/board-resources/src/components/WatchCard.svelte deleted file mode 100644 index fde3f40864..0000000000 --- a/plugins/board-resources/src/components/WatchCard.svelte +++ /dev/null @@ -1,35 +0,0 @@ - - -{#if subscribed} -