Skip to content

Commit

Permalink
Debug broken autosave
Browse files Browse the repository at this point in the history
Refs #320
  • Loading branch information
carlobeltrame committed Apr 18, 2024
1 parent 2e41608 commit 71d66db
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ if (process.env.MIX_SENTRY_VUE_DSN && process.env.MIX_SENTRY_VUE_DSN !== 'null')
logErrors: true,
})
}

console.log('hello world!')
9 changes: 9 additions & 0 deletions resources/js/components/AutoSave.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default {
this.debouncedAutosave()
},
autosave () {
console.log('autosaving', this.form())
this.saving = true
this.offline = false
this.loggedOut = false
Expand All @@ -71,6 +72,14 @@ export default {
}
})
}
},
watch: {
dirty: {
handler () {
console.log('dirty:', this.dirty)
},
immediate: true,
}
}
}
</script>

0 comments on commit 71d66db

Please sign in to comment.