From: Dan Brown Date: Sun, 1 Oct 2017 17:11:24 +0000 (+0100) Subject: Prevented 'Discard draft' option showing after saving a draft page X-Git-Tag: v0.18.2~1^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/b711bc6816c9d66e817f4b7bfeb157ca9299bbdf Prevented 'Discard draft' option showing after saving a draft page --- diff --git a/resources/assets/js/vues/page-editor.js b/resources/assets/js/vues/page-editor.js index 11413131f..9d7179a7e 100644 --- a/resources/assets/js/vues/page-editor.js +++ b/resources/assets/js/vues/page-editor.js @@ -96,7 +96,7 @@ let methods = { window.$http.put(url, data).then(response => { draftErroring = false; let updateTime = moment.utc(moment.unix(response.data.timestamp)).toDate(); - if (!this.isNewPageDraft) this.isUpdateDraft = true; + if (!this.isNewDraft) this.isUpdateDraft = true; this.draftNotifyChange(response.data.message + moment(updateTime).format('HH:mm')); lastSave = Date.now(); }, errorRes => {