List header contains now a button to add the card to the bottom of the list

This commit is contained in:
Martin Filser 2021-11-17 00:10:39 +01:00
parent 8bc047cec3
commit 861b98ea37
3 changed files with 14 additions and 3 deletions

View file

@ -101,7 +101,7 @@ BlazeComponent.extendComponent({
this.starred(!this.starred());
},
'click .js-open-list-menu': Popup.open('listAction'),
'click .js-add-card'(event) {
'click .js-add-card.fa-plus'(event) {
const listDom = $(event.target).parents(
`#js-list-${this.currentData()._id}`,
)[0];
@ -110,6 +110,15 @@ BlazeComponent.extendComponent({
position: 'top',
});
},
'click .js-add-card.fa-plus-square'(event) {
const listDom = $(event.target).parents(
`#js-list-${this.currentData()._id}`,
)[0];
const listComponent = BlazeComponent.getComponentForElement(listDom);
listComponent.openForm({
position: 'bottom',
});
},
'click .js-unselect-list'() {
Session.set('currentList', null);
},