mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Display new swimlane creation button when no swimlanes exist
This commit is contained in:
parent
fecae8d0a3
commit
96e11cb727
3 changed files with 15 additions and 4 deletions
|
|
@ -248,6 +248,10 @@ BlazeComponent.extendComponent({
|
|||
}
|
||||
},
|
||||
|
||||
hasSwimlanes() {
|
||||
return Utils.getCurrentBoard().swimlanes().length > 0;
|
||||
},
|
||||
|
||||
isViewLists() {
|
||||
const currentUser = ReactiveCache.getCurrentUser();
|
||||
if (currentUser) {
|
||||
|
|
@ -288,6 +292,7 @@ BlazeComponent.extendComponent({
|
|||
this._isDragging = false;
|
||||
}
|
||||
},
|
||||
'click .js-empty-board-add-swimlane': Popup.open('swimlaneAdd'),
|
||||
},
|
||||
];
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue