mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
- 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:
parent
8ef60a06ad
commit
0b263cf582
2 changed files with 23 additions and 27 deletions
|
|
@ -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() {
|
isCommentOnly() {
|
||||||
return Meteor.user().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({
|
BlazeComponent.extendComponent({
|
||||||
onCreated() {
|
onCreated() {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ FlowRouter.route('/', {
|
||||||
Session.set('currentCard', null);
|
Session.set('currentCard', null);
|
||||||
|
|
||||||
Filter.reset();
|
Filter.reset();
|
||||||
Session.set('sortBy', '')
|
Session.set('sortBy', '');
|
||||||
EscapeActions.executeAll();
|
EscapeActions.executeAll();
|
||||||
|
|
||||||
Utils.manageCustomUI();
|
Utils.manageCustomUI();
|
||||||
|
|
@ -36,7 +36,7 @@ FlowRouter.route('/public', {
|
||||||
Session.set('currentCard', null);
|
Session.set('currentCard', null);
|
||||||
|
|
||||||
Filter.reset();
|
Filter.reset();
|
||||||
Session.set('sortBy', '')
|
Session.set('sortBy', '');
|
||||||
EscapeActions.executeAll();
|
EscapeActions.executeAll();
|
||||||
|
|
||||||
Utils.manageCustomUI();
|
Utils.manageCustomUI();
|
||||||
|
|
@ -61,7 +61,7 @@ FlowRouter.route('/b/:id/:slug', {
|
||||||
// want to excape every current actions (filters, etc.)
|
// want to excape every current actions (filters, etc.)
|
||||||
if (previousBoard !== currentBoard) {
|
if (previousBoard !== currentBoard) {
|
||||||
Filter.reset();
|
Filter.reset();
|
||||||
Session.set('sortBy', '')
|
Session.set('sortBy', '');
|
||||||
EscapeActions.executeAll();
|
EscapeActions.executeAll();
|
||||||
} else {
|
} else {
|
||||||
EscapeActions.executeUpTo('popup-close');
|
EscapeActions.executeUpTo('popup-close');
|
||||||
|
|
@ -121,7 +121,7 @@ FlowRouter.route('/my-cards', {
|
||||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||||
action() {
|
action() {
|
||||||
Filter.reset();
|
Filter.reset();
|
||||||
Session.set('sortBy', '')
|
Session.set('sortBy', '');
|
||||||
// EscapeActions.executeAll();
|
// EscapeActions.executeAll();
|
||||||
EscapeActions.executeUpTo('popup-close');
|
EscapeActions.executeUpTo('popup-close');
|
||||||
|
|
||||||
|
|
@ -141,7 +141,7 @@ FlowRouter.route('/due-cards', {
|
||||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||||
action() {
|
action() {
|
||||||
Filter.reset();
|
Filter.reset();
|
||||||
Session.set('sortBy', '')
|
Session.set('sortBy', '');
|
||||||
// EscapeActions.executeAll();
|
// EscapeActions.executeAll();
|
||||||
EscapeActions.executeUpTo('popup-close');
|
EscapeActions.executeUpTo('popup-close');
|
||||||
|
|
||||||
|
|
@ -161,7 +161,7 @@ FlowRouter.route('/global-search', {
|
||||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||||
action() {
|
action() {
|
||||||
Filter.reset();
|
Filter.reset();
|
||||||
Session.set('sortBy', '')
|
Session.set('sortBy', '');
|
||||||
// EscapeActions.executeAll();
|
// EscapeActions.executeAll();
|
||||||
EscapeActions.executeUpTo('popup-close');
|
EscapeActions.executeUpTo('popup-close');
|
||||||
|
|
||||||
|
|
@ -188,7 +188,7 @@ FlowRouter.route('/broken-cards', {
|
||||||
const brokenCardsTemplate = 'brokenCards';
|
const brokenCardsTemplate = 'brokenCards';
|
||||||
|
|
||||||
Filter.reset();
|
Filter.reset();
|
||||||
Session.set('sortBy', '')
|
Session.set('sortBy', '');
|
||||||
// EscapeActions.executeAll();
|
// EscapeActions.executeAll();
|
||||||
EscapeActions.executeUpTo('popup-close');
|
EscapeActions.executeUpTo('popup-close');
|
||||||
|
|
||||||
|
|
@ -215,7 +215,7 @@ FlowRouter.route('/import/:source', {
|
||||||
Session.set('importSource', params.source);
|
Session.set('importSource', params.source);
|
||||||
|
|
||||||
Filter.reset();
|
Filter.reset();
|
||||||
Session.set('sortBy', '')
|
Session.set('sortBy', '');
|
||||||
EscapeActions.executeAll();
|
EscapeActions.executeAll();
|
||||||
BlazeLayout.render('defaultLayout', {
|
BlazeLayout.render('defaultLayout', {
|
||||||
headerBar: 'importHeaderBar',
|
headerBar: 'importHeaderBar',
|
||||||
|
|
@ -234,7 +234,7 @@ FlowRouter.route('/setting', {
|
||||||
Session.set('currentCard', null);
|
Session.set('currentCard', null);
|
||||||
|
|
||||||
Filter.reset();
|
Filter.reset();
|
||||||
Session.set('sortBy', '')
|
Session.set('sortBy', '');
|
||||||
EscapeActions.executeAll();
|
EscapeActions.executeAll();
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
@ -257,7 +257,7 @@ FlowRouter.route('/information', {
|
||||||
Session.set('currentCard', null);
|
Session.set('currentCard', null);
|
||||||
|
|
||||||
Filter.reset();
|
Filter.reset();
|
||||||
Session.set('sortBy', '')
|
Session.set('sortBy', '');
|
||||||
EscapeActions.executeAll();
|
EscapeActions.executeAll();
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
@ -279,7 +279,7 @@ FlowRouter.route('/people', {
|
||||||
Session.set('currentCard', null);
|
Session.set('currentCard', null);
|
||||||
|
|
||||||
Filter.reset();
|
Filter.reset();
|
||||||
Session.set('sortBy', '')
|
Session.set('sortBy', '');
|
||||||
EscapeActions.executeAll();
|
EscapeActions.executeAll();
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue