diff --git a/src/views/settings/components/Inputs.vue b/src/views/settings/components/Inputs.vue
index a5181ed1..5b168b80 100644
--- a/src/views/settings/components/Inputs.vue
+++ b/src/views/settings/components/Inputs.vue
@@ -55,7 +55,7 @@
:data-search="setting.key || setting.group"
@change="update($event, settingGroup.group, settingGroup.key, settingParent, setting.key, setting.type, nested)"/>
-
+
@@ -50,18 +50,42 @@ export default {
}
},
computed: {
+ inputValue() {
+ if (this.setting.key === 'Pleroma.Web.Auth.Authenticator') {
+ return this.data.value
+ } else if (this.setting.key === ':rewrite_policy') {
+ return typeof this.data[this.setting.key] === 'string'
+ ? [this.data[this.setting.key]]
+ : this.data[this.setting.key]
+ } else {
+ return this.data[this.setting.key]
+ }
+ },
isMobile() {
return this.$store.state.app.device === 'mobile'
- },
- rewritePolicyValue() {
- return typeof this.data[this.setting.key] === 'string' ? [this.data[this.setting.key]] : this.data[this.setting.key]
}
},
methods: {
- authenticatorOptions(suggestions) {
+ options(suggestions) {
+ let prefix
+
+ switch (this.setting.key) {
+ case ':rewrite_policy':
+ prefix = 'Pleroma.Web.ActivityPub.MRF.'
+ break
+ case 'Pleroma.Web.Auth.Authenticator':
+ prefix = 'Pleroma.Web.Auth.'
+ break
+ case ':method':
+ prefix = 'Pleroma.Captcha.'
+ break
+ default:
+ prefix = ''
+ }
+
return suggestions.map(element => {
- const label = element.split('Pleroma.Web.Auth.')[1]
- ? element.split('Pleroma.Web.Auth.')[1]
+ const label = element.split(prefix)[1]
+ ? element.split(prefix)[1]
: element
return { value: element, label }
})