diff --git a/resources/js/app.js b/resources/js/app.js index 0e8f1806..6eea0119 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -104,3 +104,5 @@ if (process.env.MIX_SENTRY_VUE_DSN && process.env.MIX_SENTRY_VUE_DSN !== 'null') logErrors: true, }) } + +console.log('hello world!') diff --git a/resources/js/components/AutoSave.vue b/resources/js/components/AutoSave.vue index 504b770a..f2cddc25 100644 --- a/resources/js/components/AutoSave.vue +++ b/resources/js/components/AutoSave.vue @@ -48,10 +48,12 @@ export default { window.open(this.routeUri('refreshCsrf')) }, onInput () { + console.log('AutoSave input') this.dirty = true this.debouncedAutosave() }, autosave () { + console.log('autosaving', this.form()) this.saving = true this.offline = false this.loggedOut = false @@ -71,6 +73,14 @@ export default { } }) } + }, + watch: { + dirty: { + handler () { + console.log('dirty:', this.dirty) + }, + immediate: true, + } } } diff --git a/resources/js/components/feedback/FeedbackEditor.vue b/resources/js/components/feedback/FeedbackEditor.vue index 9030e246..a14d3b8d 100644 --- a/resources/js/components/feedback/FeedbackEditor.vue +++ b/resources/js/components/feedback/FeedbackEditor.vue @@ -82,9 +82,11 @@ export default { let creating = true editor.on('update', ({editor, transaction}) => { this.currentValue = editor.getJSON() + console.log('FeedbackEditor input', this.currentValue) this.$emit('input', this.currentValue) // onUpdate is also called while creating the editor, so filter that call out if (!this.isRemoteChange(transaction) && !creating) { + console.log('FeedbackEditor localinput', this.currentValue) this.$emit('localinput', this.currentValue) } creating = false diff --git a/resources/js/components/feedback/FormFeedbackContent.vue b/resources/js/components/feedback/FormFeedbackContent.vue index ed331a65..51d7c640 100644 --- a/resources/js/components/feedback/FormFeedbackContent.vue +++ b/resources/js/components/feedback/FormFeedbackContent.vue @@ -74,6 +74,7 @@ export default { }, methods: { onLocalInput(...args) { + console.log('FormFeedbackContent onLocalInput', ...args) this.error = false this.$refs.autosave.onInput(...args) }