4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-14 05:06:37 +00:00
AzuraCast/frontend/vue/components/Admin/Stations/CloneModalForm.vue
2022-12-29 15:15:05 -06:00

96 lines
2.4 KiB
Vue

<template>
<div class="form-row">
<b-wrapped-form-group
id="edit_form_name"
class="col-md-12"
:field="form.name"
>
<template #label>
{{ $gettext('New Station Name') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group
id="edit_form_description"
class="col-md-12"
:field="form.description"
input-type="textarea"
>
<template #label>
{{ $gettext('New Station Description') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group
id="edit_form_clone"
class="col-md-12"
:field="form.clone"
>
<template #label>
{{ $gettext('Copy to New Station') }}
</template>
<template #default="props">
<b-form-checkbox-group
:id="props.id"
v-model="props.field.$model"
:options="cloneOptions"
stacked
/>
</template>
</b-wrapped-form-group>
</div>
</template>
<script setup>
import BWrappedFormGroup from "~/components/Form/BWrappedFormGroup.vue";
import {computed} from "vue";
import {useTranslate} from "~/vendor/gettext";
const props = defineProps({
form: Object
});
const {$gettext} = useTranslate();
const cloneOptions = computed(() => {
return [
{
text: $gettext('Share Media Storage Location'),
value: 'media_storage'
},
{
text: $gettext('Share Recordings Storage Location'),
value: 'recordings_storage'
},
{
text: $gettext('Share Podcasts Storage Location'),
value: 'podcasts_storage'
},
{
text: $gettext('Playlists'),
value: 'playlists',
},
{
text: $gettext('Mount Points'),
value: 'mounts'
},
{
text: $gettext('Remote Relays'),
value: 'remotes'
},
{
text: $gettext('Streamers/DJs'),
value: 'streamers'
},
{
text: $gettext('User Permissions'),
value: 'permissions'
},
{
text: $gettext('Web Hooks'),
value: 'webhooks'
}
];
});
</script>