Add loading indicators

This commit is contained in:
Bnyro
2023-03-12 15:56:55 +01:00
parent d823853b0d
commit 889a410cbd
5 changed files with 28 additions and 3 deletions

View File

@@ -24,21 +24,26 @@
<hr />
<div class="video-grid">
<div v-if="videos.length != 0" class="video-grid">
<template v-for="video in videos" :key="video.url">
<VideoItem v-if="shouldShowVideo(video)" :is-feed="true" :item="video" />
</template>
</div>
<div v-else>
<LoadingIndicator />
</div>
</template>
<script>
import VideoItem from "./VideoItem.vue";
import SortingSelector from "./SortingSelector.vue";
import LoadingIndicator from "./LoadingIndicator.vue";
export default {
components: {
VideoItem,
SortingSelector,
LoadingIndicator,
},
data() {
return {