mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-27 19:06:23 +08: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 => {
|
window.$http.put(url, data).then(response => {
|
||||||
draftErroring = false;
|
draftErroring = false;
|
||||||
let updateTime = moment.utc(moment.unix(response.data.timestamp)).toDate();
|
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'));
|
this.draftNotifyChange(response.data.message + moment(updateTime).format('HH:mm'));
|
||||||
lastSave = Date.now();
|
lastSave = Date.now();
|
||||||
}, errorRes => {
|
}, errorRes => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user