mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
25 lines
589 B
JavaScript
25 lines
589 B
JavaScript
BlazeComponent.extendComponent({
|
|
editTitle(evt) {
|
|
evt.preventDefault();
|
|
const newTitle = this.childComponents('inlinedForm')[0].getValue().trim();
|
|
const swimlane = this.currentData();
|
|
if (newTitle) {
|
|
swimlane.rename(newTitle.trim());
|
|
}
|
|
},
|
|
|
|
events() {
|
|
return [{
|
|
'click .js-open-swimlane-menu': Popup.open('swimlaneAction'),
|
|
submit: this.editTitle,
|
|
}];
|
|
},
|
|
}).register('swimlaneHeader');
|
|
|
|
Template.swimlaneActionPopup.events({
|
|
'click .js-close-swimlane' (evt) {
|
|
evt.preventDefault();
|
|
this.archive();
|
|
Popup.close();
|
|
},
|
|
});
|