Copy checklists to many cards copies the whole card now (+attachments)

- renamed copyChecklistToManyCards changed to copyManyCards because the whole card is copied
This commit is contained in:
Martin Filser 2022-07-03 22:32:53 +02:00
parent 43135ffc8d
commit dc210dc53b
113 changed files with 340 additions and 341 deletions

View file

@ -682,13 +682,12 @@ template(name="cardDetailsActionsPopup")
i.fa.fa-copy
| {{_ 'copyCardPopup-title'}}
unless currentUser.isWorker
hr
ul.pop-over-list
li
a.js-copy-checklist-cards
i.fa.fa-list
i.fa.fa-copy
| {{_ 'copyChecklistToManyCardsPopup-title'}}
i.fa.fa-copy
| {{_ 'copyManyCardsPopup-title'}}
unless archived
hr
ul.pop-over-list
@ -720,10 +719,10 @@ template(name="copyCardPopup")
= getTitle
+copyAndMoveCard
template(name="copyChecklistToManyCardsPopup")
label(for='copy-checklist-cards-title') {{_ 'copyChecklistToManyCardsPopup-instructions'}}:
template(name="copyManyCardsPopup")
label(for='copy-checklist-cards-title') {{_ 'copyManyCardsPopup-instructions'}}:
textarea#copy-card-title.minicard-composer-textarea.js-card-title(autofocus)
| {{_ 'copyChecklistToManyCardsPopup-format'}}
| {{_ 'copyManyCardsPopup-format'}}
+copyAndMoveCard
template(name="copyAndMoveCard")

View file

@ -687,7 +687,7 @@ Template.cardDetailsActionsPopup.events({
'click .js-move-card': Popup.open('moveCard'),
'click .js-copy-card': Popup.open('copyCard'),
'click .js-convert-checklist-item-to-card': Popup.open('convertChecklistItemToCard'),
'click .js-copy-checklist-cards': Popup.open('copyChecklistToManyCards'),
'click .js-copy-checklist-cards': Popup.open('copyManyCards'),
'click .js-set-card-color': Popup.open('setCardColor'),
'click .js-move-card-to-top'(event) {
event.preventDefault();
@ -1101,7 +1101,7 @@ Template.convertChecklistItemToCardPopup.events({
}
}
}
}).register('copyChecklistToManyCardsPopup');
}).register('copyManyCardsPopup');
BlazeComponent.extendComponent({
onCreated() {