mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Add a button to move selected cards
This is an alternative to drag and drop to move a set of selected
cards. This feature was available at the list level until I deleted it
in 5bdf91b, so it makes sense to add it back at the multi-selection
level.
This commit is contained in:
parent
0954ef3e44
commit
2733c1d3a0
3 changed files with 29 additions and 12 deletions
|
|
@ -67,6 +67,9 @@ template(name="multiselectionSidebar")
|
||||||
else if someSelectedElementHave 'member' _id
|
else if someSelectedElementHave 'member' _id
|
||||||
i.fa.fa-ellipsis-h
|
i.fa.fa-ellipsis-h
|
||||||
hr
|
hr
|
||||||
|
a.sidebar-btn.js-move-selection
|
||||||
|
i.fa.fa-share
|
||||||
|
span {{_ 'move-selection'}}
|
||||||
a.sidebar-btn.js-archive-selection
|
a.sidebar-btn.js-archive-selection
|
||||||
i.fa.fa-archive
|
i.fa.fa-archive
|
||||||
span {{_ 'archive-selection'}}
|
span {{_ 'archive-selection'}}
|
||||||
|
|
@ -80,3 +83,7 @@ template(name="disambiguateMultiMemberPopup")
|
||||||
p {{_ 'what-to-do'}}
|
p {{_ 'what-to-do'}}
|
||||||
button.wide.js-unassign-member {{_ 'unassign-member'}}
|
button.wide.js-unassign-member {{_ 'unassign-member'}}
|
||||||
button.wide.js-assign-member {{_ 'assign-member'}}
|
button.wide.js-assign-member {{_ 'assign-member'}}
|
||||||
|
|
||||||
|
template(name="moveSelectionPopup")
|
||||||
|
+boardLists
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,7 @@ BlazeComponent.extendComponent({
|
||||||
return popup.call(this.currentData(), evt);
|
return popup.call(this.currentData(), evt);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
'click .js-move-selection': Popup.open('moveSelection'),
|
||||||
'click .js-archive-selection'() {
|
'click .js-archive-selection'() {
|
||||||
mutateSelectedCards('archive');
|
mutateSelectedCards('archive');
|
||||||
EscapeActions.executeUpTo('multiselection');
|
EscapeActions.executeUpTo('multiselection');
|
||||||
|
|
@ -122,3 +123,10 @@ Template.disambiguateMultiMemberPopup.events({
|
||||||
Popup.close();
|
Popup.close();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Template.moveSelectionPopup.events({
|
||||||
|
'click .js-select-list'() {
|
||||||
|
mutateSelectedCards('move', this._id);
|
||||||
|
EscapeActions.executeUpTo('multiselection');
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
|
||||||
|
|
@ -92,16 +92,16 @@
|
||||||
"close": "Close",
|
"close": "Close",
|
||||||
"close-board": "Close Board",
|
"close-board": "Close Board",
|
||||||
"close-board-pop": "You will be able to restore the board by clicking the “Archives” button from the home header.",
|
"close-board-pop": "You will be able to restore the board by clicking the “Archives” button from the home header.",
|
||||||
"color-green": "green",
|
|
||||||
"color-yellow": "yellow",
|
|
||||||
"color-orange": "orange",
|
|
||||||
"color-red": "red",
|
|
||||||
"color-purple": "purple",
|
|
||||||
"color-blue": "blue",
|
|
||||||
"color-sky": "sky",
|
|
||||||
"color-lime": "lime",
|
|
||||||
"color-pink": "pink",
|
|
||||||
"color-black": "black",
|
"color-black": "black",
|
||||||
|
"color-blue": "blue",
|
||||||
|
"color-green": "green",
|
||||||
|
"color-lime": "lime",
|
||||||
|
"color-orange": "orange",
|
||||||
|
"color-pink": "pink",
|
||||||
|
"color-purple": "purple",
|
||||||
|
"color-red": "red",
|
||||||
|
"color-sky": "sky",
|
||||||
|
"color-yellow": "yellow",
|
||||||
"comment": "Comment",
|
"comment": "Comment",
|
||||||
"comment-placeholder": "Write a comment",
|
"comment-placeholder": "Write a comment",
|
||||||
"computer": "Computer",
|
"computer": "Computer",
|
||||||
|
|
@ -135,9 +135,9 @@
|
||||||
"email-invite-text": "Dear __user__,\n\n__inviter__ invites you to join board \"__board__\" for collaborations.\n\nPlease follow the link below:\n\n__url__\n\nThanks.\n",
|
"email-invite-text": "Dear __user__,\n\n__inviter__ invites you to join board \"__board__\" for collaborations.\n\nPlease follow the link below:\n\n__url__\n\nThanks.\n",
|
||||||
"email-resetPassword-subject": "Reset your password on __url__",
|
"email-resetPassword-subject": "Reset your password on __url__",
|
||||||
"email-resetPassword-text": "Hello __user__,\n\nTo reset your password, simply click the link below.\n\n__url__\n\nThanks.\n",
|
"email-resetPassword-text": "Hello __user__,\n\nTo reset your password, simply click the link below.\n\n__url__\n\nThanks.\n",
|
||||||
|
"email-sent": "Email sent",
|
||||||
"email-verifyEmail-subject": "Verify your email address on __url__",
|
"email-verifyEmail-subject": "Verify your email address on __url__",
|
||||||
"email-verifyEmail-text": "Hello __user__,\n\nTo verify your account email, simply click the link below.\n\n__url__\n\nThanks.\n",
|
"email-verifyEmail-text": "Hello __user__,\n\nTo verify your account email, simply click the link below.\n\n__url__\n\nThanks.\n",
|
||||||
"email-sent": "Email sent",
|
|
||||||
"error-board-doesNotExist": "This board does not exist",
|
"error-board-doesNotExist": "This board does not exist",
|
||||||
"error-board-notAdmin": "You need to be admin of this board to do that",
|
"error-board-notAdmin": "You need to be admin of this board to do that",
|
||||||
"error-board-notAMember": "You need to be a member of this board to do that",
|
"error-board-notAMember": "You need to be a member of this board to do that",
|
||||||
|
|
@ -187,12 +187,14 @@
|
||||||
"lists": "Lists",
|
"lists": "Lists",
|
||||||
"log-out": "Log Out",
|
"log-out": "Log Out",
|
||||||
"loginPopup-title": "Log In",
|
"loginPopup-title": "Log In",
|
||||||
"mapMembersPopup-title": "Map members",
|
|
||||||
"mapMembersAddPopup-title": "Select Wekan member",
|
"mapMembersAddPopup-title": "Select Wekan member",
|
||||||
|
"mapMembersPopup-title": "Map members",
|
||||||
"memberMenuPopup-title": "Member Settings",
|
"memberMenuPopup-title": "Member Settings",
|
||||||
"members": "Members",
|
"members": "Members",
|
||||||
"menu": "Menu",
|
"menu": "Menu",
|
||||||
|
"move-selection": "Move selection",
|
||||||
"moveCardPopup-title": "Move Card",
|
"moveCardPopup-title": "Move Card",
|
||||||
|
"moveSelectionPopup-title": "Move selection",
|
||||||
"multi-selection": "Multi-Selection",
|
"multi-selection": "Multi-Selection",
|
||||||
"multi-selection-on": "Multi-Selection is on",
|
"multi-selection-on": "Multi-Selection is on",
|
||||||
"my-boards": "My Boards",
|
"my-boards": "My Boards",
|
||||||
|
|
@ -211,8 +213,8 @@
|
||||||
"password": "Password",
|
"password": "Password",
|
||||||
"paste-or-dragdrop": "to paste, or drag & drop image file to it (image only)",
|
"paste-or-dragdrop": "to paste, or drag & drop image file to it (image only)",
|
||||||
"preview": "Preview",
|
"preview": "Preview",
|
||||||
"previewClipboardImagePopup-title": "Preview",
|
|
||||||
"previewAttachedImagePopup-title": "Preview",
|
"previewAttachedImagePopup-title": "Preview",
|
||||||
|
"previewClipboardImagePopup-title": "Preview",
|
||||||
"private": "Private",
|
"private": "Private",
|
||||||
"private-desc": "This board is private. Only people added to the board can view and edit it.",
|
"private-desc": "This board is private. Only people added to the board can view and edit it.",
|
||||||
"profile": "Profile",
|
"profile": "Profile",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue