koel/resources/assets/js/components/screens/home/RecentlyAddedAlbums.vue

20 lines
470 B
Vue
Raw Normal View History

2022-06-10 10:47:46 +00:00
<template>
<section>
<h1>New Albums</h1>
<ol class="recently-added-album-list">
<li v-for="album in albums" :key="album.id">
<AlbumCard :album="album" layout="compact"/>
</li>
</ol>
</section>
</template>
<script lang="ts" setup>
import { toRef } from 'vue'
2022-06-10 10:47:46 +00:00
import { overviewStore } from '@/stores'
import AlbumCard from '@/components/album/AlbumCard.vue'
2022-06-10 10:47:46 +00:00
const albums = toRef(overviewStore.state, 'recentlyAddedAlbums')
</script>