Skip to content
Snippets Groups Projects
Commit c42f6602 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

feat: hide default media source for the station fallback show

refs #128
parent 246962c1
No related branches found
No related tags found
No related merge requests found
Pipeline #8352 passed
...@@ -326,7 +326,10 @@ ...@@ -326,7 +326,10 @@
</FormGroup> </FormGroup>
</AFieldset> </AFieldset>
<AFieldset :title="t('show.section.media.title')"> <AFieldset
v-if="radioSettings?.program?.fallback?.showId !== show.id"
:title="t('show.section.media.title')"
>
<FormGroup <FormGroup
v-slot="{ disabled }" v-slot="{ disabled }"
:errors="playlistId.errors" :errors="playlistId.errors"
...@@ -401,7 +404,7 @@ import AFieldset from '@/components/generic/AFieldset.vue' ...@@ -401,7 +404,7 @@ import AFieldset from '@/components/generic/AFieldset.vue'
import APlaylistEditor from '@/components/playlist/APlaylistEditor.vue' import APlaylistEditor from '@/components/playlist/APlaylistEditor.vue'
import AUserSelector from '@/components/identities/AUserSelector.vue' import AUserSelector from '@/components/identities/AUserSelector.vue'
import AProfileSelector from '@/components/identities/AProfileSelector.vue' import AProfileSelector from '@/components/identities/AProfileSelector.vue'
import { useImageRequirements } from '@/stores/radio-settings' import { useCurrentRadioSettings, useImageRequirements } from '@/stores/radio-settings'
const props = defineProps<{ const props = defineProps<{
show: Show show: Show
...@@ -418,6 +421,7 @@ const languageStore = useLanguageStore() ...@@ -418,6 +421,7 @@ const languageStore = useLanguageStore()
const profileStore = useProfileStore() const profileStore = useProfileStore()
const fundingCategoryStore = useFundingCategoryStore() const fundingCategoryStore = useFundingCategoryStore()
const playlistStore = usePlaylistStore() const playlistStore = usePlaylistStore()
const radioSettings = useCurrentRadioSettings()
const show = computed(() => props.show) const show = computed(() => props.show)
const name = useAPIObjectFieldCopy(showStore, show, 'name', { debounce: 2 }) const name = useAPIObjectFieldCopy(showStore, show, 'name', { debounce: 2 })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment