1
0
Fork 0
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:
McMatts 2019-03-13 11:42:12 +00:00
parent 1d00f8ac6e
commit f4a371357e

View file

@ -119,6 +119,8 @@ export default Component.extend(Notifier, Modals, {
meta: meta
};
this.set('newSectionName', '');
const promise = this.addSection(model);
promise.then((id) => {
this.set('toEdit', model.page.pageType === 'section' ? id : '');
@ -152,6 +154,8 @@ export default Component.extend(Notifier, Modals, {
meta: meta
};
this.set('newSectionName', '');
const promise = this.addSection(model);
promise.then((id) => { // eslint-disable-line no-unused-vars
});