From f4a371357e93e3ba77883ff3ff9c71d99693c2c4 Mon Sep 17 00:00:00 2001 From: McMatts Date: Wed, 13 Mar 2019 11:42:12 +0000 Subject: [PATCH] Clear new section title input box After inserting new section we clear the seciton title --- gui/app/components/document/add-section.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/app/components/document/add-section.js b/gui/app/components/document/add-section.js index b2e56a25..850ad61c 100644 --- a/gui/app/components/document/add-section.js +++ b/gui/app/components/document/add-section.js @@ -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 });