Skip to content

Commit

Permalink
series in new-episode - use loading flag to fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRoehm committed Apr 4, 2024
1 parent c7e74d3 commit 120a783
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions pages/[episodeslug]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@
</div>
</BaseContainerClean>
</div>
<div class="w-screen h-20 bg-skin-muted"></div>
<BaseContainerClean class="pb-16 bg-skin-muted dark:bg-skin-dark text-skin-base dark:text-skin-dark text-sm tracking-wide md:text-base">
<BaseContainerClean class="pt-20 pb-16 bg-skin-muted dark:bg-skin-dark text-skin-base dark:text-skin-dark text-sm tracking-wide md:text-base">
<div class="text-skin-muted">{{ $t('episode.episode') }}</div>
<div class="flex flex-col justify-between sm:flex-row">
<div class="flex flex-row flex-wrap">
Expand Down
6 changes: 3 additions & 3 deletions pages/admin/podcast/[slug]/new-episode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { emptyIEpisodeFactory } from "~~/base/types/IEpisode";
const route = useRoute();
const router = useRouter();
const {podcast, refresh, gernerateRss } = usePodcast(route.params.slug as string);
const {series} = useSeries(true,true);
const {podcast, loading, refresh, gernerateRss } = usePodcast(route.params.slug as string);
const {series, loading: seriesLoading} = useSeries(true,true);
const {user} = await useAuth()
const {on_mounted, on_before, on_user_changed} = useMounted(refresh, user, true)
Expand All @@ -26,7 +26,7 @@ function cancel() {
<template>
<PageLayout>
<BaseContainerClean>
<episode-detail v-if="user" :podcast="podcast" :episode="episode" :series="series" @save="save" @episode-cancel="cancel"/>
<episode-detail v-if="user && !loading && !seriesLoading" :podcast="podcast" :episode="episode" :series="series" @save="save" @episode-cancel="cancel"/>
</BaseContainerClean>
</PageLayout>
</template>

0 comments on commit 120a783

Please sign in to comment.