refactor(front): use NodeInfo21 types
This commit is contained in:
parent
253d310ccf
commit
0da18700e6
|
@ -15,7 +15,7 @@ export const install: InitModule = async ({ store, router }) => {
|
||||||
const fetchNodeInfo = async () => {
|
const fetchNodeInfo = async () => {
|
||||||
try {
|
try {
|
||||||
const [{ data }] = await Promise.all([
|
const [{ data }] = await Promise.all([
|
||||||
axios.get<components['schemas']['NodeInfo20']>('instance/nodeinfo/2.1/'),
|
axios.get<components['schemas']['NodeInfo21']>('instance/nodeinfo/2.1/'),
|
||||||
store.dispatch('instance/fetchSettings')
|
store.dispatch('instance/fetchSettings')
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ export interface State {
|
||||||
frontSettings: FrontendSettings
|
frontSettings: FrontendSettings
|
||||||
instanceUrl?: string
|
instanceUrl?: string
|
||||||
knownInstances: string[]
|
knownInstances: string[]
|
||||||
nodeinfo: components['schemas']['NodeInfo20'] | null
|
nodeinfo: components['schemas']['NodeInfo21'] | null
|
||||||
settings: Settings
|
settings: Settings
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue