feat(settings): Allow to set the instances server location

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2604>
This commit is contained in:
Georg Krause 2023-11-16 09:02:59 +00:00
commit 71140d5a9b
4 changed files with 32 additions and 0 deletions

View file

@ -217,6 +217,20 @@ const save = async () => {
{{ v[1] }}
</option>
</select>
<select
v-else-if="setting.field.class === 'ChoiceField'"
:id="setting.identifier"
v-model="values[setting.identifier]"
class="ui search selection dropdown"
>
<option
v-for="v in setting.additional_data?.choices"
:key="v[0]"
:value="v[0]"
>
{{ v[1] }}
</option>
</select>
<div v-else-if="setting.field.widget.class === 'ImageWidget'">
<input
:id="setting.identifier"

View file

@ -24,6 +24,7 @@ const groups = computed(() => [
id: 'instance',
settings: [
{ name: 'instance__name' },
{ name: 'instance__location' },
{ name: 'instance__short_description' },
{ name: 'instance__long_description', fieldType: 'markdown', fieldParams: { charLimit: null, permissive: true } },
{ name: 'instance__contact_email' },