responsive fedi admin panel
This commit is contained in:
parent
061c104632
commit
1a9e932f04
1 changed files with 21 additions and 20 deletions
|
@ -1,26 +1,20 @@
|
||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
div
|
el-main
|
||||||
el-form(label-width='200px')
|
el-switch.d-block(v-model='enable_federation' :active-text="$t('admin.enable_federation')")
|
||||||
el-form-item(:label="$t('admin.enable_federation')")
|
small.text-secondary {{$t('admin.enable_federation_help')}}
|
||||||
el-popover(:content="$t('admin.enable_federation_help')" placement='right' trigger='hover')
|
|
||||||
span(slot='reference')
|
|
||||||
el-switch(v-model='enable_federation')
|
|
||||||
|
|
||||||
el-form-item(v-show='enable_federation' :label="$t('admin.enable_resources')")
|
template(v-if='enable_federation')
|
||||||
el-popover(:content="$t('admin.enable_resources_help')" placement='right' trigger='hover')
|
|
||||||
span(slot='reference')
|
|
||||||
el-switch(v-model='enable_resources')
|
|
||||||
|
|
||||||
el-form-item(v-show='enable_federation' :label="$t('admin.hide_boost_bookmark')")
|
el-switch.d-block.mt-4(v-model='enable_resources' :active-text="$t('admin.enable_resources')")
|
||||||
el-popover(:content="$t('admin.hide_boost_bookmark_help')" placement='right' trigger='hover')
|
small.text-secondary {{$t('admin.enable_resources_help')}}
|
||||||
span(slot='reference')
|
|
||||||
el-switch(v-model='hide_boosts')
|
|
||||||
|
|
||||||
el-form-item(v-show='enable_federation' :label="$t('admin.instance_name')")
|
el-switch.d-block.mt-4(v-model='hide_boosts' :active-text="$t('admin.hide_boost_bookmark')")
|
||||||
el-popover(:content="$t('admin.instance_name_help')" placement='right' trigger='hover')
|
small.text-secondary {{$t('admin.hide_boost_bookmark_help')}}
|
||||||
span(slot='reference')
|
|
||||||
|
|
||||||
|
div.mt-4 {{$t('admin.instance_name')}}
|
||||||
el-input.w-25(v-model='instance_name' placeholder='Instance name')
|
el-input.w-25(v-model='instance_name' placeholder='Instance name')
|
||||||
p Follow this instance from <u>@{{instance_name}}@{{settings.baseurl|url2host}}</u>
|
small.d-block.text-secondary {{$t('admin.instance_name_help')}} (<u>@{{instance_name}}@{{settings.baseurl|url2host}}</u>)
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -47,6 +41,13 @@ export default {
|
||||||
set (value) { this.setSetting({ key: 'hide_boosts', value }) }
|
set (value) { this.setSetting({ key: 'hide_boosts', value }) }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: mapActions(['setSetting'])
|
methods: {
|
||||||
|
...mapActions(['setSetting']),
|
||||||
|
save (key, value) {
|
||||||
|
if (this.settings[key] !== value) {
|
||||||
|
this.setSetting({ key, value })
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue