mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
mostly frontend work, lists coll update with wipLimit field
This commit is contained in:
parent
c9c650664f
commit
a918d36533
7 changed files with 46 additions and 16 deletions
|
|
@ -8,6 +8,10 @@ BlazeComponent.extendComponent({
|
|||
}
|
||||
},
|
||||
|
||||
hasWipLimit() {
|
||||
return this.currentData().wipLimit > 0 ? true : false;
|
||||
},
|
||||
|
||||
isWatching() {
|
||||
const list = this.currentData();
|
||||
return list.findWatcher(Meteor.userId());
|
||||
|
|
@ -21,11 +25,6 @@ BlazeComponent.extendComponent({
|
|||
return count > this.limitToShowCardsCount();
|
||||
},
|
||||
|
||||
hasWipLimit() {
|
||||
return null;
|
||||
//return this.currentData().wipLimit ? true : false;
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
'click .js-open-list-menu': Popup.open('listAction'),
|
||||
|
|
@ -42,6 +41,10 @@ BlazeComponent.extendComponent({
|
|||
}).register('listHeader');
|
||||
|
||||
Template.listActionPopup.helpers({
|
||||
hasWipLimit() {
|
||||
return this.wipLimit > 0 ? true : false;
|
||||
},
|
||||
|
||||
isWatching() {
|
||||
return this.findWatcher(Meteor.userId());
|
||||
},
|
||||
|
|
@ -70,6 +73,13 @@ Template.listActionPopup.events({
|
|||
'click .js-more': Popup.open('listMore'),
|
||||
});
|
||||
|
||||
Template.setWipLimitPopup.events({
|
||||
'click .wip-limit-apply'(_, instance) {
|
||||
const limit = instance.$('.wip-limit-value').val();
|
||||
this.setWipLimit(limit);
|
||||
},
|
||||
});
|
||||
|
||||
Template.listMorePopup.events({
|
||||
'click .js-delete': Popup.afterConfirm('listDelete', function () {
|
||||
Popup.close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue