mirror of
https://github.com/documize/community.git
synced 2025-07-20 13:49:42 +02:00
Clear new section title input box
After inserting new section we clear the seciton title
This commit is contained in:
parent
1d00f8ac6e
commit
f4a371357e
1 changed files with 4 additions and 0 deletions
|
@ -119,6 +119,8 @@ export default Component.extend(Notifier, Modals, {
|
||||||
meta: meta
|
meta: meta
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.set('newSectionName', '');
|
||||||
|
|
||||||
const promise = this.addSection(model);
|
const promise = this.addSection(model);
|
||||||
promise.then((id) => {
|
promise.then((id) => {
|
||||||
this.set('toEdit', model.page.pageType === 'section' ? id : '');
|
this.set('toEdit', model.page.pageType === 'section' ? id : '');
|
||||||
|
@ -152,6 +154,8 @@ export default Component.extend(Notifier, Modals, {
|
||||||
meta: meta
|
meta: meta
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.set('newSectionName', '');
|
||||||
|
|
||||||
const promise = this.addSection(model);
|
const promise = this.addSection(model);
|
||||||
promise.then((id) => { // eslint-disable-line no-unused-vars
|
promise.then((id) => { // eslint-disable-line no-unused-vars
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue