From b273a4f68b8753f8a8b1e539e2fb140f9ebd2b9b Mon Sep 17 00:00:00 2001 From: Jens Frost <93131870+jensfrost@users.noreply.github.com> Date: Mon, 15 May 2023 14:10:31 +0200 Subject: [PATCH] Added copy button code from copy-button-added #346 on github --- client/src/components/CardModal/CardModal.jsx | 27 +++++++++++++++++++ client/src/lib/popup/index.js | 3 ++- client/src/locales/en/core.js | 6 ++++- client/src/locales/sv/core.js | 4 +++ 4 files changed, 38 insertions(+), 2 deletions(-) diff --git a/client/src/components/CardModal/CardModal.jsx b/client/src/components/CardModal/CardModal.jsx index d72ccca..7a07f7a 100755 --- a/client/src/components/CardModal/CardModal.jsx +++ b/client/src/components/CardModal/CardModal.jsx @@ -24,6 +24,7 @@ import DueDateEditStep from '../DueDateEditStep'; import StopwatchEditStep from '../StopwatchEditStep'; import CardMoveStep from '../CardMoveStep'; import DeleteStep from '../DeleteStep'; +import CardCopyPopup from '../CardCopyPopup'; import styles from './CardModal.module.scss'; @@ -493,6 +494,32 @@ const CardModal = React.memo( {t('action.move')} + + + after connection restored', + areYouSureYouWantToCopyThisCard: 'Are you sure you want to copy this card', areYouSureYouWantToDeleteThisAttachment: 'Are you sure you want to delete this attachment?', areYouSureYouWantToDeleteThisBoard: 'Are you sure you want to delete this board?', areYouSureYouWantToDeleteThisCard: 'Are you sure you want to delete this card?', areYouSureYouWantToDeleteThisComment: 'Are you sure you want to delete this comment?', areYouSureYouWantToDeleteThisLabel: 'Are you sure you want to delete this label?', areYouSureYouWantToDeleteThisList: 'Are you sure you want to delete this list?', - areYouSureYouWantToSortThisList: 'Are you sure you want to sort this list?', areYouSureYouWantToDeleteThisProject: 'Are you sure you want to delete this project?', areYouSureYouWantToDeleteThisTask: 'Are you sure you want to delete this task?', areYouSureYouWantToDeleteThisUser: 'Are you sure you want to delete this user?', @@ -37,6 +37,7 @@ export default { 'Are you sure you want to remove this manager from the project?', areYouSureYouWantToRemoveThisMemberFromBoard: 'Are you sure you want to remove this member from the board?', + areYouSureYouWantToSortThisList: 'Are you sure you want to sort this list?', attachment: 'Attachment', attachments: 'Attachments', authentication: 'Authentication', @@ -50,6 +51,7 @@ export default { cardNotFound_title: 'Card Not Found', cardOrActionAreDeleted: 'Card or action are deleted', color: 'Color', + copyCard: 'Copy card', createBoard_title: 'Create Board', createLabel_title: 'Create Label', createNewOneOrSelectExistingOne: 'Create a new one or select
an existing one', @@ -175,6 +177,8 @@ export default { addTask: 'Add task', addToCard: 'Add to card', addUser: 'Add user', + copy: 'Copy', + copyCard: 'Copy card', createBoard: 'Create board', createFile: 'Create file', createLabel: 'Create label', diff --git a/client/src/locales/sv/core.js b/client/src/locales/sv/core.js index 8478d03..6fea429 100644 --- a/client/src/locales/sv/core.js +++ b/client/src/locales/sv/core.js @@ -24,6 +24,7 @@ export default { all: 'Alla', allChangesWillBeAutomaticallySavedAfterConnectionRestored: 'Alla ändringar kommer att sparas automatiskt
så fort anslutningen är återställd', + areYouSureYouWantToCopyThisCard: 'Är du säker på att du vill kopiera det här kortet', areYouSureYouWantToDeleteThisAttachment: 'Är du säker på att du vill ta bort den här bilagan?', areYouSureYouWantToDeleteThisBoard: 'Är du säker på att du vill ta bort den här tavlan?', @@ -52,6 +53,7 @@ export default { cardNotFound_title: 'Kort Ej Funnet', cardOrActionAreDeleted: 'Kort eller åtgärd är borttagen', color: 'Färg', + copyCard: 'Kopiera kort', createBoard_title: 'Skapa Tavla', createLabel_title: 'Skapa Etikett', createNewOneOrSelectExistingOne: 'Skapa en ny eller välj
en redan existerande', @@ -162,6 +164,8 @@ export default { addTask: 'Lägg till uppgift', addToCard: 'Lägg till i kort', addUser: 'Lägg till användare', + copy: 'Kopiera', + copyCard: 'Kopiera kort', createBoard: 'Skapa tavla', createFile: 'Skapa fil', createLabel: 'Skapa etikett',