mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Added "Move card to archive" to minicard ☰ menu.
Thanks to mohammadZahedian and xet7 ! Fixes #4303
This commit is contained in:
parent
57755ef413
commit
1deccf2f4b
2 changed files with 11 additions and 0 deletions
|
@ -172,6 +172,12 @@ template(name="minicardDetailsActionsPopup")
|
|||
i.fa.fa-copy
|
||||
| {{_ 'copyCardPopup-title'}}
|
||||
hr
|
||||
li
|
||||
a.js-archive
|
||||
i.fa.fa-arrow-right
|
||||
i.fa.fa-archive
|
||||
| {{_ 'archive-card'}}
|
||||
hr
|
||||
li
|
||||
a.js-move-card-to-top
|
||||
i.fa.fa-arrow-up
|
||||
|
|
|
@ -168,4 +168,9 @@ Template.minicardDetailsActionsPopup.events({
|
|||
this.move(this.boardId, this.swimlaneId, this.listId, maxOrder + 1);
|
||||
Popup.back();
|
||||
},
|
||||
'click .js-archive': Popup.afterConfirm('cardArchive', function () {
|
||||
Popup.close();
|
||||
this.archive();
|
||||
Utils.goBoardId(this.boardId);
|
||||
}),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue