Skip to content

Commit

Permalink
series missing in new episode bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRoehm committed Apr 3, 2024
1 parent d05b62b commit c7e74d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions components/EpisodeDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div class="flex flex-col flex-grow w-full">
<audio-file-selector :audioFileName="fields.link" @audioFileSelected="audioFileSelected" :error="errors"
:label="'episode.label.file'" />
<single-select :name="'serie'" :label="'episode.label.serie'" :options="series" :errors="errors"
<single-select :name="'serie'" :label="'episode.label.serie'" :options="series_options" :errors="errors"
v-model:value="serie_id" />
</div>
</div>
Expand Down Expand Up @@ -363,6 +363,7 @@ export default defineComponent({
}
return cssclass;
};
const series_options = ref(props.series.map((s) => { return { "enumvalue_id": s.id, "displaytext": s.title } as Partial<IEnumerator> }))
return {
isEdit,
imageSelected,
Expand All @@ -377,7 +378,7 @@ export default defineComponent({
pubdateText,
errors,
getClass,
series: props.series.map((s) => { return { "enumvalue_id": s.id, "displaytext": s.title } as Partial<IEnumerator> }),
series_options,
save,
remove,
cancel,
Expand Down
2 changes: 1 addition & 1 deletion pages/admin/podcast/[slug]/new-episode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ const route = useRoute();
const router = useRouter();
const {podcast, refresh, gernerateRss } = usePodcast(route.params.slug as string);
const {series} = useSeries(true,true);
const {user} = await useAuth()
const {on_mounted, on_before, on_user_changed} = useMounted(refresh, user, true)
onMounted( on_mounted )
onBeforeMount( on_before )
watch(user, on_user_changed);
const {series} = useSeries(true);
const episode = ref(emptyIEpisodeFactory());
async function save() {
Expand Down

0 comments on commit c7e74d3

Please sign in to comment.