mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Add ability to edit swimlane name
This commit is contained in:
parent
42bc905c16
commit
3414cb84ad
3 changed files with 32 additions and 4 deletions
16
client/components/swimlanes/swimlaneHeader.js
Normal file
16
client/components/swimlanes/swimlaneHeader.js
Normal 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');
|
||||
Loading…
Add table
Add a link
Reference in a new issue