fix temporary changes not working

This commit is contained in:
Henry Jameson 2025-03-19 03:33:05 +02:00
commit 4b51432ff1
3 changed files with 14 additions and 3 deletions

View file

@ -44,6 +44,17 @@ export const useInterfaceStore = defineStore('interface', {
lastTimeline: null
}),
actions: {
setTemporaryChanges ({ timeoutId, confirm, revert }) {
this.temporaryChangesTimeoutId = timeoutId
this.temporaryChangesConfirm = confirm
this.temporaryChangesRevert = revert
},
clearTemporaryChanges () {
clearTimeout(this.temporaryChangesTimeoutId)
this.temporaryChangesTimeoutId = null
this.temporaryChangesConfirm = () => {}
this.temporaryChangesRevert = () => {}
},
setPageTitle (option = '') {
try {
document.title = `${option} ${window.vuex.state.instance.name}`