mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
List header contains now a button to add the card to the bottom of the list
This commit is contained in:
parent
8bc047cec3
commit
861b98ea37
3 changed files with 14 additions and 3 deletions
|
|
@ -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);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue