mirror of
https://github.com/wekan/wekan.git
synced 2026-01-01 15:18:49 +01:00
Merge pull request #4138 from mfilser/card_popup_close_color_remove-move_bottom-delete
Card popup close color remove move bottom delete
This commit is contained in:
commit
5fd7407207
1 changed files with 3 additions and 2 deletions
|
|
@ -690,6 +690,7 @@ Template.cardDetailsActionsPopup.events({
|
|||
.map((c) => c.sort),
|
||||
);
|
||||
this.move(this.boardId, this.swimlaneId, this.listId, maxOrder + 1);
|
||||
Popup.back();
|
||||
},
|
||||
'click .js-archive': Popup.afterConfirm('cardArchive', function () {
|
||||
Popup.close();
|
||||
|
|
@ -1011,7 +1012,7 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
'click .js-remove-color'() {
|
||||
this.currentCard.setColor(null);
|
||||
Popup.back();
|
||||
Popup.close();
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
@ -1113,7 +1114,7 @@ BlazeComponent.extendComponent({
|
|||
}
|
||||
},
|
||||
'click .js-delete': Popup.afterConfirm('cardDelete', function () {
|
||||
Popup.back();
|
||||
Popup.close();
|
||||
// verify that there are no linked cards
|
||||
if (Cards.find({ linkedId: this._id }).count() === 0) {
|
||||
Cards.remove(this._id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue