X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/14ea6c9de341a5474210bc8dba862a23c5de7bf0..refs/pull/2877/head:/resources/js/components/page-editor.js diff --git a/resources/js/components/page-editor.js b/resources/js/components/page-editor.js index a0d8d38b1..e753b58e1 100644 --- a/resources/js/components/page-editor.js +++ b/resources/js/components/page-editor.js @@ -74,7 +74,6 @@ class PageEditor { } setInitialFocus() { - console.log({'HAS': this.hasDefaultTitle}); if (this.hasDefaultTitle) { return this.titleElem.select(); } @@ -120,6 +119,9 @@ class PageEditor { } this.draftNotifyChange(`${resp.data.message} ${Dates.utcTimeStampToLocalTime(resp.data.timestamp)}`); this.autoSave.last = Date.now(); + if (resp.data.warning.length > 0) { + window.$events.emit('warning', resp.data.warning); + } } catch (err) { // Save the editor content in LocalStorage as a last resort, just in case. try {