- Fixed Bug: Move Swimlane to Archive does not work anymore.

- Fixed lint in router.js

Thanks to marcungeschikts and xet7 !

Fixes #3690
This commit is contained in:
Lauri Ojansivu 2021-03-31 17:52:22 +03:00
parent 8ef60a06ad
commit 0b263cf582
2 changed files with 23 additions and 27 deletions

View file

@ -47,25 +47,21 @@ Template.swimlaneFixedHeader.helpers({
},
});
BlazeComponent.extendComponent({
Template.swimlaneActionPopup.events({
'click .js-set-swimlane-color': Popup.open('setSwimlaneColor'),
'click .js-close-swimlane'(event) {
event.preventDefault();
this.archive();
Popup.close();
},
'click .js-move-swimlane': Popup.open('moveSwimlane'),
});
Template.swimlaneActionPopup.events({
isCommentOnly() {
return Meteor.user().isCommentOnly();
},
events() {
return [
{
'click .js-set-swimlane-color': Popup.open('setSwimlaneColor'),
'click .js-close-swimlane'(event) {
event.preventDefault();
this.archive();
Popup.close();
},
'click .js-move-swimlane': Popup.open('moveSwimlane'),
},
];
},
}).register('swimlaneActionPopup');
});
BlazeComponent.extendComponent({
onCreated() {