From 243b1343d5b6f31bec67cffd7bab0ee7b8c5559f Mon Sep 17 00:00:00 2001 From: Sergey Semenov Date: Mon, 25 Apr 2022 23:01:55 +0700 Subject: [PATCH] Add action (#1493) Signed-off-by: Sergey Semenov --- plugins/board-assets/lang/en.json | 5 +- plugins/board-assets/lang/ru.json | 5 +- .../src/components/popups/CopyCard.svelte | 144 ++++++++++++++++++ .../components/selectors/RankSelect.svelte | 24 ++- plugins/board-resources/src/index.ts | 8 +- plugins/board-resources/src/plugin.ts | 5 +- 6 files changed, 179 insertions(+), 12 deletions(-) create mode 100644 plugins/board-resources/src/components/popups/CopyCard.svelte diff --git a/plugins/board-assets/lang/en.json b/plugins/board-assets/lang/en.json index e5c4c2ca8f..ad6780e102 100644 --- a/plugins/board-assets/lang/en.json +++ b/plugins/board-assets/lang/en.json @@ -91,6 +91,9 @@ "DeleteCard": "All actions will be removed from the activity feed and you won’t be able to re-open the card. There is no undo.", "SearchMembers": "Search members", "Menu": "Menu", - "ToArchive": "Archive" + "ToArchive": "Archive", + "CopyCard": "Copy card", + "AlsoCopy": "Keep...", + "CopyTo": "Copy to..." } } diff --git a/plugins/board-assets/lang/ru.json b/plugins/board-assets/lang/ru.json index 856d259414..367de6570b 100644 --- a/plugins/board-assets/lang/ru.json +++ b/plugins/board-assets/lang/ru.json @@ -91,6 +91,9 @@ "DeleteCard": "Все действия будут удалены из ленты, и вы не сможете повторно открыть карточку. Отмена невозможна.", "SearchMembers": "Поиск участников", "Menu": "Меню", - "ToArchive": "Архивировать" + "ToArchive": "Архивировать", + "CopyCard": "Копировать карточку", + "AlsoCopy": "Также копировать...", + "CopyTo": "Копировать в..." } } diff --git a/plugins/board-resources/src/components/popups/CopyCard.svelte b/plugins/board-resources/src/components/popups/CopyCard.svelte new file mode 100644 index 0000000000..31513707dc --- /dev/null +++ b/plugins/board-resources/src/components/popups/CopyCard.svelte @@ -0,0 +1,144 @@ + + +
+
+
+
+
+ +
+
+
+