fix(front): minor improvements

This commit is contained in:
upsiflu 2025-03-24 22:04:36 +01:00
parent 8267a3e716
commit 465010d3ea
3 changed files with 4 additions and 5 deletions

View File

@ -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')
]) ])

View File

@ -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