Skip to content

Commit

Permalink
Fix video loading
Browse files Browse the repository at this point in the history
Previous change would continue to show the "loading..." indicator
after the video list had been loading, making it impossible to
select videos.
  • Loading branch information
marcone committed May 6, 2023
1 parent 4b496d3 commit bf9ed97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Viewer/Index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<template>
<div class="viewer" :class="{compact: env.compact}">
<div class="selects">
<VeuiLoading v-if="videos!=undefined" loading>{{ t('fetching-video-list') }}</VeuiLoading>
<VeuiLoading v-if="videos===undefined" loading>{{ t('fetching-video-list') }}</VeuiLoading>
<div v-else-if="videos===null">{{ t('no-video-found') }}</div>
<EpisodeSelect v-else class="episode-select" v-model="current" :videos="videos" />
<VeuiSelect class="layout-select" :value="layout" :options="layouts" @change="handleLayoutChange" />
</div>
Expand Down

0 comments on commit bf9ed97

Please sign in to comment.