mirror of
https://github.com/wekan/wekan.git
synced 2026-02-01 22:21:47 +01:00
Confirm Archive Card.
Thanks to xet7 !
This commit is contained in:
parent
22cbd5097b
commit
6c3fcdcc4c
4 changed files with 14 additions and 5 deletions
|
|
@ -826,6 +826,12 @@ template(name="cardDeletePopup")
|
|||
p {{_ "card-delete-suggest-archive"}}
|
||||
button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
|
||||
|
||||
template(name="cardArchivePopup")
|
||||
p {{_ "card-archive-pop"}}
|
||||
unless archived
|
||||
p {{_ "card-archive-suggest-cancel"}}
|
||||
button.js-confirm.negate.full(type="submit") {{_ 'archive'}}
|
||||
|
||||
template(name="deleteVotePopup")
|
||||
p {{_ "vote-delete-pop"}}
|
||||
button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
|
||||
|
|
|
|||
|
|
@ -663,11 +663,11 @@ Template.cardDetailsActionsPopup.events({
|
|||
);
|
||||
this.move(this.boardId, this.swimlaneId, this.listId, maxOrder + 1);
|
||||
},
|
||||
'click .js-archive'(event) {
|
||||
event.preventDefault();
|
||||
this.archive();
|
||||
'click .js-archive': Popup.afterConfirm('cardArchive', function () {
|
||||
Popup.close();
|
||||
},
|
||||
this.archive();
|
||||
Utils.goBoardId(this.boardId);
|
||||
}),
|
||||
'click .js-more': Popup.open('cardMore'),
|
||||
'click .js-toggle-watch-card'() {
|
||||
const currentCard = this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue