feat(front): [WIP] use store for tags
This commit is contained in:
parent
5b8ca3c38e
commit
cb9de136c4
|
@ -1,6 +1,8 @@
|
|||
import type { Module } from 'vuex'
|
||||
import type { RootState } from '~/store/index'
|
||||
import type { SUPPORTED_LOCALES } from '~/init/locale'
|
||||
import type { Channel } from '~/types'
|
||||
import type { components } from '~/generated/types'
|
||||
|
||||
import axios from 'axios'
|
||||
import moment from 'moment'
|
||||
|
@ -53,6 +55,9 @@ export interface State {
|
|||
|
||||
notifications: Record<NotificationsKey, number>
|
||||
websocketEventsHandlers: Record<WebSocketEventName, WebSocketHandlers>
|
||||
preselectedChannelForUpload: null | [Channel, 'podcast' | 'music']
|
||||
|
||||
tags: null | components['schemas']['Tag'][]
|
||||
}
|
||||
|
||||
const logger = useLogger()
|
||||
|
@ -89,7 +94,10 @@ const store: Module<State, RootState> = {
|
|||
Listen: {}
|
||||
},
|
||||
pageTitle: null,
|
||||
modalsOpen: new Set([])
|
||||
modalsOpen: new Set([]),
|
||||
preselectedChannelForUpload: null,
|
||||
|
||||
tags: null
|
||||
},
|
||||
getters: {
|
||||
showInstanceSupportMessage: (state, getters, rootState) => {
|
||||
|
|
Loading…
Reference in New Issue