Skip to content
Snippets Groups Projects
Commit 389fbf50 authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Find data in description for settings that don't have a key

parent fb5bfca5
No related branches found
No related tags found
1 merge request!83Config improvements
......@@ -62,7 +62,7 @@ export default {
return _.get(this.settings.settings, [':pleroma', ':oauth2']) || {}
},
pleromaAuthenticator() {
return this.settings.description.find(setting => setting.description === 'Authenticator')
return this.settings.description.find(setting => setting.children && setting.children[0].key === 'Pleroma.Web.Auth.Authenticator')
},
pleromaAuthenticatorData() {
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Auth.Authenticator']) || {}
......
......@@ -50,7 +50,7 @@ export default {
'settings'
]),
adminToken() {
return this.settings.description.find(setting => setting.description === `Allows to set a token that can be used to authenticate with the admin api without using an actual user by giving it as the 'admin_token' parameter`)
return this.settings.description.find(setting => setting.children && setting.children[0].key === ':admin_token')
},
adminTokenData() {
return _.get(this.settings.settings, [':pleroma', ':admin_token']) || {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment