fix(front): proper loader on albums page

This commit is contained in:
ArneBo 2025-01-21 19:35:09 +01:00
parent 2c8dd38a09
commit 5b11a558c0
1 changed files with 7 additions and 6 deletions

View File

@ -189,16 +189,17 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value]
</option> </option>
</select> </select>
</Layout> </Layout>
<Spacer />
<Loader v-if="isLoading"/>
<Layout grid <Layout grid
v-if="result && result.results.length > 0" v-if="result && result.results.length > 0"
style="display:flex; flex-wrap:wrap; gap: 32px; margin-top:32px;" style="display:flex; flex-wrap:wrap; gap: 32px; margin-top:32px;"
> >
<Loader v-if="isLoading"/> <AlbumCard
<AlbumCard v-for="album in result.results"
v-for="album in result.results" :key="album.id"
:key="album.id" :album="album"
:album="album" />
/>
</Layout> </Layout>
<Layout <Layout
stack stack