mirror of
https://github.com/wekan/wekan.git
synced 2026-03-13 00:46:14 +01:00
Board Menu Popup's were opened twice because of 2 same event creation
This commit is contained in:
parent
08f2c1c735
commit
95740eaa01
1 changed files with 0 additions and 31 deletions
|
|
@ -6,37 +6,6 @@ const DOWNCLS = 'fa-sort-down';
|
||||||
const UPCLS = 'fa-sort-up';
|
const UPCLS = 'fa-sort-up';
|
||||||
*/
|
*/
|
||||||
const sortCardsBy = new ReactiveVar('');
|
const sortCardsBy = new ReactiveVar('');
|
||||||
Template.boardMenuPopup.events({
|
|
||||||
'click .js-rename-board': Popup.open('boardChangeTitle'),
|
|
||||||
'click .js-custom-fields'() {
|
|
||||||
Sidebar.setView('customFields');
|
|
||||||
Popup.back();
|
|
||||||
},
|
|
||||||
'click .js-open-archives'() {
|
|
||||||
Sidebar.setView('archives');
|
|
||||||
Popup.back();
|
|
||||||
},
|
|
||||||
'click .js-change-board-color': Popup.open('boardChangeColor'),
|
|
||||||
'click .js-change-language': Popup.open('changeLanguage'),
|
|
||||||
'click .js-archive-board ': Popup.afterConfirm('archiveBoard', function() {
|
|
||||||
const currentBoard = Utils.getCurrentBoard();
|
|
||||||
currentBoard.archive();
|
|
||||||
// XXX We should have some kind of notification on top of the page to
|
|
||||||
// confirm that the board was successfully archived.
|
|
||||||
FlowRouter.go('home');
|
|
||||||
}),
|
|
||||||
'click .js-delete-board': Popup.afterConfirm('deleteBoard', function() {
|
|
||||||
const currentBoard = Utils.getCurrentBoard();
|
|
||||||
Popup.back();
|
|
||||||
Boards.remove(currentBoard._id);
|
|
||||||
FlowRouter.go('home');
|
|
||||||
}),
|
|
||||||
'click .js-outgoing-webhooks': Popup.open('outgoingWebhooks'),
|
|
||||||
'click .js-import-board': Popup.open('chooseBoardSource'),
|
|
||||||
'click .js-subtask-settings': Popup.open('boardSubtaskSettings'),
|
|
||||||
'click .js-card-settings': Popup.open('boardCardSettings'),
|
|
||||||
'click .js-minicard-settings': Popup.open('boardMinicardSettings'),
|
|
||||||
});
|
|
||||||
|
|
||||||
Template.boardChangeTitlePopup.events({
|
Template.boardChangeTitlePopup.events({
|
||||||
submit(event, templateInstance) {
|
submit(event, templateInstance) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue