lint
This commit is contained in:
parent
bc97016ea3
commit
18a3bbbd49
15 changed files with 43 additions and 36 deletions
|
|
@ -398,7 +398,11 @@ export const _resetPrefs = (
|
|||
totalFlags.reset <= COMMAND_WIPE_JOURNAL_AND_STORAGE
|
||||
) {
|
||||
console.debug('Received command to reset journals')
|
||||
clearJournals()
|
||||
this.flagStorage.reset = COMMAND_WIPE_JOURNAL
|
||||
this.prefsStorage._journal = []
|
||||
this.cache.prefsStorage._journal = []
|
||||
this.raw.prefsStorage._journal = []
|
||||
this.pushSyncConfig()
|
||||
if (totalFlags.reset === COMMAND_WIPE_JOURNAL_AND_STORAGE) {
|
||||
console.debug('Received command to reset storage')
|
||||
return cloneDeep(defaultState)
|
||||
|
|
@ -598,13 +602,6 @@ export const useSyncConfigStore = defineStore('sync_config', {
|
|||
})
|
||||
this.flagStorage.reset = COMMAND_WIPE_JOURNAL_AND_STORAGE
|
||||
},
|
||||
clearJournals() {
|
||||
this.flagStorage.reset = COMMAND_WIPE_JOURNAL
|
||||
this.prefsStorage._journal = []
|
||||
this.cache.prefsStorage._journal = []
|
||||
this.raw.prefsStorage._journal = []
|
||||
this.pushSyncConfig()
|
||||
},
|
||||
initSyncConfig(userData) {
|
||||
console.log(userData)
|
||||
const live = userData.storage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue