remaining backend interactor removals
This commit is contained in:
parent
28efd7ebd2
commit
0d9709825f
45 changed files with 1118 additions and 856 deletions
|
|
@ -1,9 +1,11 @@
|
|||
import { merge } from 'lodash'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import { useCredentialsStore } from 'src/stores/credentials.js'
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
|
||||
import { ensureFinalFallback } from 'src/i18n/languages.js'
|
||||
import { listEmojiPacks } from 'src/services/api/api.service.js'
|
||||
|
||||
import { annotationsLoader } from 'virtual:pleroma-fe/emoji-annotations'
|
||||
|
||||
|
|
@ -183,13 +185,13 @@ export const useEmojiStore = defineStore('emoji', {
|
|||
|
||||
async getAdminPacksLocal(refresh) {
|
||||
if (!refresh && this.adminPacksLocal) return this.adminPacksLocal
|
||||
const backendInteractor = window.vuex.state.api.backendInteractor
|
||||
const listFunction = backendInteractor.listEmojiPacks
|
||||
|
||||
this.adminPacksLocalLoading = true
|
||||
this.adminPacksLocal = await this.getAdminPacks(
|
||||
useInstanceStore().server,
|
||||
listFunction,
|
||||
() =>
|
||||
listEmojiPacks({
|
||||
credentials: useCredentialsStore().current,
|
||||
}),
|
||||
)
|
||||
this.adminPacksLocalLoading = false
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue