Prevented 'Discard draft' option showing after saving a draft page

This commit is contained in:
Dan Brown 2017-10-01 18:11:24 +01:00
parent 247e6dba85
commit b711bc6816
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -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 => {