fix(front): minor improvements
This commit is contained in:
parent
8267a3e716
commit
465010d3ea
|
@ -1,5 +1,4 @@
|
||||||
import type { NodeInfo } from '~/store/instance'
|
import type { components } from '~/generated/types'
|
||||||
import type { schemas } from '~/generated/types'
|
|
||||||
import type { InitModule } from '~/types'
|
import type { InitModule } from '~/types'
|
||||||
|
|
||||||
import { whenever } from '@vueuse/core'
|
import { whenever } from '@vueuse/core'
|
||||||
|
@ -16,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<schemas['NodeInfo20']>('instance/nodeinfo/2.1/'),
|
axios.get<components['schemas']['NodeInfo20']>('instance/nodeinfo/2.1/'),
|
||||||
store.dispatch('instance/fetchSettings')
|
store.dispatch('instance/fetchSettings')
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,7 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value]
|
||||||
text: t('views.playlists.List.button.manage'),
|
text: t('views.playlists.List.button.manage'),
|
||||||
primary: true,
|
primary: true,
|
||||||
icon: 'bi-music-note-list',
|
icon: 'bi-music-note-list',
|
||||||
ariaPressed: store.state.playlists.showModal
|
ariaPressed: store.state.playlists.showModal || undefined
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
<Header
|
<Header
|
||||||
|
|
Loading…
Reference in New Issue