Browse Source

changed variable names

Erik Turk 7 years ago
parent
commit
cfaeb43f1f

+ 3 - 3
client/components/cards/cardDetails.jade

@@ -135,7 +135,7 @@ template(name="cardDetailsActionsPopup")
     ul.pop-over-list
       li: a.js-move-card {{_ 'moveCardPopup-title'}}
       li: a.js-copy-card {{_ 'copyCardPopup-title'}}
-      li: a.js-copy-many-card {{_ 'copyManyCardPopup-title'}}
+      li: a.js-copy-checklist-cards {{_ 'copyChecklistToManyCardsPopup-title'}}
       unless archived
         li: a.js-archive {{_ 'archive-card'}}
       li: a.js-more {{_ 'cardMorePopup-title'}}
@@ -156,8 +156,8 @@ template(name="copyCardPopup")
     +boardsAndLists
 
 
-template(name="copyManyCardPopup")
-  label(for='copy-many-card-title') {{_ 'copyChecklistToManyCardsPopup-instructions'}}:
+template(name="copyChecklistToManyCardsPopup")
+  label(for='copy-checklist-cards-title') {{_ 'copyChecklistToManyCardsPopup-instructions'}}:
   textarea#copy-card-title.minicard-composer-textarea.js-card-title(autofocus)
     | {{_ 'copyChecklistToManyCardsPopup-format'}}
   if isSandstorm

+ 2 - 2
client/components/cards/cardDetails.js

@@ -170,7 +170,7 @@ Template.cardDetailsActionsPopup.events({
   'click .js-spent-time': Popup.open('editCardSpentTime'),
   'click .js-move-card': Popup.open('moveCard'),
   'click .js-copy-card': Popup.open('copyCard'),
-  'click .js-copy-many-card': Popup.open('copyManyCard'),
+  'click .js-copy-checklist-cards': Popup.open('copyChecklistToManyCards'),
   'click .js-move-card-to-top' (evt) {
     evt.preventDefault();
     const minOrder = _.min(this.list().cards(this.swimlaneId).map((c) => c.sort));
@@ -298,7 +298,7 @@ Template.copyCardPopup.events({
 });
 
 
-Template.copyManyCardPopup.events({
+Template.copyChecklistToManyCardsPopup.events({
   'click .js-select-list' (evt) {
     const card = Cards.findOne(Session.get('currentCard'));
     const oldId = card._id;

+ 1 - 1
i18n/en.i18n.json

@@ -159,7 +159,7 @@
     "confirm-checklist-delete-dialog": "Are you sure you want to delete checklist",
     "copy-card-link-to-clipboard": "Copy card link to clipboard",
     "copyCardPopup-title": "Copy Card",
-    "copyManyCardPopup-title": "Copy Checklist Template to Many Cards",
+    "copyChecklistToManyCardsPopup-title": "Copy Checklist Template to Many Cards",
     "copyChecklistToManyCardsPopup-instructions": "Destination Card Titles and Descriptions in this JSON format",
     "copyChecklistToManyCardsPopup-format": "[ {\"title\": \"First card title\", \"description\":\"First card description\"}, {\"title\":\"Second card title\",\"description\":\"Second card description\"},{\"title\":\"Last card title\",\"description\":\"Last card description\"} ]",
     "create": "Create",