add path to new inbox file in pinia store
Not ideal to have data in multiple store (pinia and PouchDB) but it work this way. May need a refactoring.
This commit is contained in:
@@ -86,6 +86,9 @@ export const useUserRepoStore = defineStore({
|
||||
}, 350)
|
||||
})
|
||||
},
|
||||
addFile(file: RepoFile) {
|
||||
this.files = [...this.files.filter((f) => f.sha !== file.sha), file]
|
||||
},
|
||||
resetUserRepo() {
|
||||
this.user = ''
|
||||
this.repo = ''
|
||||
|
||||
Reference in New Issue
Block a user