Remove default album art URL from Station Form (it's now in Branding).
This commit is contained in:
parent
818e7949bd
commit
b42f52fccb
|
@ -9,7 +9,7 @@
|
|||
@hidden="clearContents"
|
||||
>
|
||||
<admin-stations-form
|
||||
v-bind="$props"
|
||||
v-bind="pickProps(props, stationFormProps)"
|
||||
ref="$form"
|
||||
is-modal
|
||||
:create-url="createUrl"
|
||||
|
@ -51,6 +51,7 @@ import {computed, ref} from "vue";
|
|||
import {useTranslate} from "~/vendor/gettext";
|
||||
import {BModal} from "bootstrap-vue";
|
||||
import stationFormProps from "~/components/Admin/Stations/stationFormProps";
|
||||
import {pickProps} from "~/functions/pickProps";
|
||||
|
||||
const props = defineProps({
|
||||
...stationFormProps,
|
||||
|
|
|
@ -70,21 +70,6 @@
|
|||
</template>
|
||||
</b-wrapped-form-group>
|
||||
|
||||
<b-wrapped-form-group
|
||||
id="edit_form_default_album_art_url"
|
||||
class="col-md-6"
|
||||
:field="form.default_album_art_url"
|
||||
>
|
||||
<template #label>
|
||||
{{ $gettext('Default Album Art URL') }}
|
||||
</template>
|
||||
<template #description>
|
||||
{{
|
||||
$gettext('If a song has no album art, this URL will be listed instead. Leave blank to use the standard placeholder art.')
|
||||
}}
|
||||
</template>
|
||||
</b-wrapped-form-group>
|
||||
|
||||
<b-wrapped-form-group
|
||||
v-if="showAdvanced"
|
||||
id="edit_form_short_name"
|
||||
|
|
|
@ -130,14 +130,6 @@
|
|||
</b-overlay>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {defineComponent} from "vue";
|
||||
|
||||
export default defineComponent({
|
||||
inheritAttrs: false
|
||||
});
|
||||
</script>
|
||||
|
||||
<script setup>
|
||||
import AdminStationsProfileForm from "./Form/ProfileForm.vue";
|
||||
import AdminStationsFrontendForm from "./Form/FrontendForm.vue";
|
||||
|
@ -155,6 +147,7 @@ import mergeExisting from "~/functions/mergeExisting";
|
|||
import {useVuelidateOnForm} from "~/functions/useVuelidateOnForm";
|
||||
import {isArray, merge, mergeWith} from "lodash";
|
||||
import stationFormProps from "~/components/Admin/Stations/stationFormProps";
|
||||
import {useResettableRef} from "~/functions/useResettableRef";
|
||||
|
||||
const props = defineProps({
|
||||
...stationFormProps,
|
||||
|
@ -188,7 +181,6 @@ const buildForm = () => {
|
|||
enable_public_page: {},
|
||||
enable_on_demand: {},
|
||||
enable_hls: {},
|
||||
default_album_art_url: {},
|
||||
enable_on_demand_download: {},
|
||||
frontend_type: {required},
|
||||
frontend_config: {
|
||||
|
@ -218,7 +210,7 @@ const buildForm = () => {
|
|||
$validationGroups: {
|
||||
profileTab: [
|
||||
'name', 'description', 'genre', 'url', 'timezone', 'enable_public_page',
|
||||
'enable_on_demand', 'enable_on_demand_download', 'default_album_art_url'
|
||||
'enable_on_demand', 'enable_on_demand_download'
|
||||
],
|
||||
frontendTab: [
|
||||
'frontend_type', 'frontend_config'
|
||||
|
@ -250,7 +242,6 @@ const buildForm = () => {
|
|||
enable_public_page: true,
|
||||
enable_on_demand: false,
|
||||
enable_hls: false,
|
||||
default_album_art_url: '',
|
||||
enable_on_demand_download: true,
|
||||
frontend_type: FRONTEND_ICECAST,
|
||||
frontend_config: {
|
||||
|
@ -426,7 +417,7 @@ const blankStation = {
|
|||
}
|
||||
};
|
||||
|
||||
const station = ref({...blankStation});
|
||||
const {record: station, reset: resetStation} = useResettableRef(blankStation);
|
||||
|
||||
const tabContentClass = computed(() => {
|
||||
return (props.isModal)
|
||||
|
@ -443,9 +434,10 @@ const getTabClass = (validationGroup) => {
|
|||
|
||||
const clear = () => {
|
||||
resetForm();
|
||||
resetStation();
|
||||
|
||||
loading.value = false;
|
||||
error.value = null;
|
||||
station.value = {...blankStation};
|
||||
};
|
||||
|
||||
const populateForm = (data) => {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
</div>
|
||||
|
||||
<admin-stations-form
|
||||
v-bind="$props"
|
||||
v-bind="pickProps(props, stationFormProps)"
|
||||
ref="$form"
|
||||
:is-edit-mode="true"
|
||||
:edit-url="editUrl"
|
||||
|
@ -23,6 +23,7 @@
|
|||
import AdminStationsForm from "~/components/Admin/Stations/StationForm";
|
||||
import {onMounted, ref} from "vue";
|
||||
import stationFormProps from "~/components/Admin/Stations/stationFormProps";
|
||||
import {pickProps} from "~/functions/pickProps";
|
||||
|
||||
const props = defineProps({
|
||||
...stationFormProps,
|
||||
|
|
Loading…
Reference in New Issue