fix note refresh for unsaved changes

This commit is contained in:
korelstar 2020-07-17 18:17:50 +02:00
parent c7799a76fb
commit 8e4ee5a2a4
1 changed files with 4 additions and 0 deletions

View File

@ -242,6 +242,10 @@ export default {
},
refreshNote() {
if (this.note.unsaved) {
this.startRefreshTimer()
return
}
refreshNote(parseInt(this.noteId), this.etag).then(etag => {
if (etag) {
this.etag = etag