Added copy button code from copy-button-added #346 on github

pull/705/head
Jens Frost 3 years ago
parent 191639f067
commit b273a4f68b

@ -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')}
</Button>
</CardMovePopup>
<CardCopyPopup
projectsToLists={allProjectsToLists}
defaultPath={{
name,
description,
users,
labels,
tasks,
attachments,
projectId,
boardId,
listId,
}}
onMove={onMove}
onTransfer={onTransfer}
onBoardFetch={onBoardFetch}
>
<Button
fluid
className={styles.actionButton}
// onClick={handleToggleSubscriptionClick}
>
<Icon name="copy outline" className={styles.actionIcon} />
{t('action.copy')}
</Button>
</CardCopyPopup>
<DeletePopup
title="common.deleteCard"
content="common.areYouSureYouWantToDeleteThisCard"

@ -1,4 +1,5 @@
import usePopup from './use-popup';
import closePopup from './close-popup';
import withPopup from './with-popup';
export { usePopup, closePopup };
export { usePopup, closePopup, withPopup };

@ -21,13 +21,13 @@ export default {
all: 'All',
allChangesWillBeAutomaticallySavedAfterConnectionRestored:
'All changes will be automatically saved<br />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<br />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',

@ -24,6 +24,7 @@ export default {
all: 'Alla',
allChangesWillBeAutomaticallySavedAfterConnectionRestored:
'Alla ändringar kommer att sparas automatiskt<br />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<br />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',

Loading…
Cancel
Save