Display new swimlane creation button when no swimlanes exist

This commit is contained in:
Nadav Tasher 2024-12-30 01:25:25 +02:00
parent fecae8d0a3
commit 96e11cb727
3 changed files with 15 additions and 4 deletions

View file

@ -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'),
},
];
},