command to clear journals in case of a leak or development leak

This commit is contained in:
Henry Jameson 2026-02-24 20:45:52 +02:00
commit 5b1536eb3e

View file

@ -579,6 +579,12 @@ export const useSyncConfigStore = defineStore('sync_config', {
this[k] = blankState[k]
})
},
clearJournals() {
this.prefsStorage._journal = []
this.cache.prefsStorage._journal = []
this.raw.prefsStorage._journal = []
this.pushSyncConfig()
},
setSyncConfig(userData) {
const live = userData.storage
this.raw = live