Add ability to edit swimlane name

This commit is contained in:
Andrés Manelli 2018-02-01 13:10:30 -03:00
parent 42bc905c16
commit 3414cb84ad
3 changed files with 32 additions and 4 deletions

View file

@ -0,0 +1,16 @@
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 [{
submit: this.editTitle,
}];
},
}).register('swimlaneHeader');