Migrate bookmark folders state to pinia store
This commit is contained in:
parent
9e2086edaf
commit
bc0b13ac0d
11 changed files with 77 additions and 84 deletions
|
|
@ -1,10 +1,11 @@
|
|||
import apiService from '../api/api.service.js'
|
||||
import { promiseInterval } from '../promise_interval/promise_interval.js'
|
||||
import { useBookmarkFoldersStore } from 'src/stores/bookmark_folders.js'
|
||||
|
||||
const fetchAndUpdate = ({ store, credentials }) => {
|
||||
const fetchAndUpdate = ({ credentials }) => {
|
||||
return apiService.fetchBookmarkFolders({ credentials })
|
||||
.then(bookmarkFolders => {
|
||||
store.commit('setBookmarkFolders', bookmarkFolders)
|
||||
useBookmarkFoldersStore().setBookmarkFolders(bookmarkFolders)
|
||||
}, () => {})
|
||||
.catch(() => {})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue