mirror of
https://github.com/koel/koel
synced 2024-12-25 03:53:05 +00:00
21 lines
554 B
Vue
21 lines
554 B
Vue
<template>
|
|
<section>
|
|
<h1>New Albums</h1>
|
|
<ol v-if="albums.length" class="recently-added-album-list">
|
|
<li v-for="album in albums" :key="album.id">
|
|
<AlbumCard :album="album" layout="compact"/>
|
|
</li>
|
|
</ol>
|
|
|
|
<p v-else class="text-secondary">No albums added yet.</p>
|
|
</section>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { toRef } from 'vue'
|
|
import { overviewStore } from '@/stores'
|
|
|
|
import AlbumCard from '@/components/album/AlbumCard.vue'
|
|
|
|
const albums = toRef(overviewStore.state, 'recentlyAddedAlbums')
|
|
</script>
|