mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 03:42:32 +01:00
Prevented 'Discard draft' option showing after saving a draft page
This commit is contained in:
parent
247e6dba85
commit
b711bc6816
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user