From 957d87d7574cb5d4e5a67301344e91809e247526 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sat, 30 Nov 2019 01:31:53 +0900 Subject: [PATCH] Change groups names --- src/store/modules/settings.js | 37 +++++++++---------- src/views/settings/components/ActivityPub.vue | 4 +- .../settings/components/Authentication.vue | 8 ++-- src/views/settings/components/AutoLinker.vue | 2 +- src/views/settings/components/Captcha.vue | 4 +- src/views/settings/components/Database.vue | 2 +- src/views/settings/components/Endpoint.vue | 6 +-- src/views/settings/components/Esshd.vue | 2 +- src/views/settings/components/Frontend.vue | 10 ++--- src/views/settings/components/Gopher.vue | 2 +- src/views/settings/components/Http.vue | 8 ++-- src/views/settings/components/Instance.vue | 16 ++++---- src/views/settings/components/JobQueue.vue | 6 +-- src/views/settings/components/Logger.vue | 8 ++-- src/views/settings/components/MRF.vue | 16 ++++---- src/views/settings/components/Mailer.vue | 6 +-- src/views/settings/components/MediaProxy.vue | 2 +- src/views/settings/components/Metadata.vue | 4 +- src/views/settings/components/Other.vue | 4 +- .../settings/components/RateLimiters.vue | 2 +- src/views/settings/components/Upload.vue | 12 +++--- src/views/settings/components/WebPush.vue | 2 +- 22 files changed, 81 insertions(+), 82 deletions(-) diff --git a/src/store/modules/settings.js b/src/store/modules/settings.js index b47dadb9..aff537c6 100644 --- a/src/store/modules/settings.js +++ b/src/store/modules/settings.js @@ -5,19 +5,19 @@ const settings = { state: { description: [], settings: { - auto_linker: {}, - cors_plug: {}, - esshd: {}, - http_signatures: {}, - logger: {}, - mime: {}, - phoenix: {}, - pleroma: {}, - prometheus: {}, - quack: {}, - tesla: {}, - ueberauth: {}, - web_push_encryption: {} + ':auto_linker': {}, + ':cors_plug': {}, + ':esshd': {}, + ':http_signatures': {}, + ':logger': {}, + ':mime': {}, + ':phoenix': {}, + ':pleroma': {}, + ':prometheus': {}, + ':quack': {}, + ':tesla': {}, + ':ueberauth': {}, + ':web_push_encryption': {} }, updatedSettings: {}, ignoredIfNotEnabled: ['enabled', 'handler', 'password_authenticator', 'port', 'priv_dir'], @@ -42,13 +42,12 @@ const settings = { state.settings = newSettings }, UPDATE_SETTINGS: (state, { group, tab, data }) => { - const groupUPD = group.substr(1) - const updatedState = { [tab]: { ...state.settings[groupUPD][tab], ...data }} - const updatedSetting = state.updatedSettings[groupUPD] - ? { [tab]: { ...state.updatedSettings[groupUPD][tab], ...data }} + const updatedState = { [tab]: { ...state.settings[group][tab], ...data }} + const updatedSetting = state.updatedSettings[group] + ? { [tab]: { ...state.updatedSettings[group][tab], ...data }} : { [tab]: data } - state.settings[groupUPD] = { ...state.settings[groupUPD], ...updatedState } - state.updatedSettings[groupUPD] = { ...state.updatedSettings[groupUPD], ...updatedSetting } + state.settings[group] = { ...state.settings[group], ...updatedState } + state.updatedSettings[group] = { ...state.updatedSettings[group], ...updatedSetting } } }, actions: { diff --git a/src/views/settings/components/ActivityPub.vue b/src/views/settings/components/ActivityPub.vue index 0effc24d..4c99296d 100644 --- a/src/views/settings/components/ActivityPub.vue +++ b/src/views/settings/components/ActivityPub.vue @@ -29,7 +29,7 @@ export default { return this.settings.description.find(setting => setting.key === ':activitypub') }, activitypubData() { - return this.settings.settings.pleroma[':activitypub'] + return this.settings.settings[':pleroma'][':activitypub'] }, isMobile() { return this.$store.state.app.device === 'mobile' @@ -44,7 +44,7 @@ export default { return this.settings.description.find(setting => setting.key === ':user') }, userData() { - return this.settings.settings.pleroma[':user'] + return this.settings.settings[':pleroma'][':user'] } }, methods: { diff --git a/src/views/settings/components/Authentication.vue b/src/views/settings/components/Authentication.vue index 72e7ad91..c37fe537 100644 --- a/src/views/settings/components/Authentication.vue +++ b/src/views/settings/components/Authentication.vue @@ -37,7 +37,7 @@ export default { return this.settings.description.find(setting => setting.key === ':auth') }, authData() { - return this.settings.settings.pleroma[':auth'] + return this.settings.settings[':pleroma'][':auth'] }, isMobile() { return this.$store.state.app.device === 'mobile' @@ -49,7 +49,7 @@ export default { return this.settings.description.find(setting => setting.key === ':ldap') }, ldapData() { - return this.settings.settings.pleroma[':ldap'] + return this.settings.settings[':pleroma'][':ldap'] }, loading() { return this.settings.loading @@ -58,13 +58,13 @@ export default { return this.settings.description.find(setting => setting.key === ':oauth2') }, oauth2Data() { - return this.settings.settings.pleroma[':oauth2'] + return this.settings.settings[':pleroma'][':oauth2'] }, pleromaAuthenticator() { return this.settings.description.find(setting => setting.description === 'Authenticator') }, pleromaAuthenticatorData() { - return this.settings.settings.pleroma['Pleroma.Web.Auth.Authenticator'] + return this.settings.settings[':pleroma']['Pleroma.Web.Auth.Authenticator'] } }, methods: { diff --git a/src/views/settings/components/AutoLinker.vue b/src/views/settings/components/AutoLinker.vue index 138c6646..29c1f69b 100644 --- a/src/views/settings/components/AutoLinker.vue +++ b/src/views/settings/components/AutoLinker.vue @@ -23,7 +23,7 @@ export default { return this.settings.description.find(setting => setting.key === ':opts') }, autoLinkerData() { - return this.settings.settings.auto_linker[':opts'] + return this.settings.settings[':auto_linker'][':opts'] }, isMobile() { return this.$store.state.app.device === 'mobile' diff --git a/src/views/settings/components/Captcha.vue b/src/views/settings/components/Captcha.vue index 44e3ea05..0a61f0bf 100644 --- a/src/views/settings/components/Captcha.vue +++ b/src/views/settings/components/Captcha.vue @@ -29,7 +29,7 @@ export default { return this.settings.description.find(setting => setting.key === 'Pleroma.Captcha') }, captchaData() { - return this.settings.settings.pleroma['Pleroma.Captcha'] + return this.settings.settings[':pleroma']['Pleroma.Captcha'] }, isMobile() { return this.$store.state.app.device === 'mobile' @@ -38,7 +38,7 @@ export default { return this.settings.description.find(setting => setting.key === 'Pleroma.Captcha.Kocaptcha') }, kocaptchaData() { - return this.settings.settings.pleroma['Pleroma.Captcha.Kocaptcha'] + return this.settings.settings[':pleroma']['Pleroma.Captcha.Kocaptcha'] }, labelWidth() { return this.isMobile ? '100px' : '240px' diff --git a/src/views/settings/components/Database.vue b/src/views/settings/components/Database.vue index 9077d919..206d1248 100644 --- a/src/views/settings/components/Database.vue +++ b/src/views/settings/components/Database.vue @@ -25,7 +25,7 @@ export default { return this.settings.description.find(setting => setting.key === ':database') }, databaseData() { - return this.settings.settings.pleroma[':database'] + return this.settings.settings[':pleroma'][':database'] }, isMobile() { return this.$store.state.app.device === 'mobile' diff --git a/src/views/settings/components/Endpoint.vue b/src/views/settings/components/Endpoint.vue index a08e0847..6becdbb2 100644 --- a/src/views/settings/components/Endpoint.vue +++ b/src/views/settings/components/Endpoint.vue @@ -35,13 +35,13 @@ export default { return this.settings.description.find(setting => setting.key === 'Pleroma.Web.Endpoint') }, endpointData() { - return this.settings.settings.pleroma['Pleroma.Web.Endpoint'] + return this.settings.settings[':pleroma']['Pleroma.Web.Endpoint'] }, endpointMetricsExporter() { return this.settings.description.find(setting => setting.key === 'Pleroma.Web.Endpoint.MetricsExporter') }, endpointMetricsExporterData() { - return this.settings.settings.prometheus['Pleroma.Web.Endpoint.MetricsExporter'] + return this.settings.settings[':prometheus']['Pleroma.Web.Endpoint.MetricsExporter'] }, isMobile() { return this.$store.state.app.device === 'mobile' @@ -56,7 +56,7 @@ export default { return this.settings.description.find(setting => setting.key === 'Pleroma.Plugs.RemoteIp') }, remoteIpData() { - return this.settings.settings.pleroma['Pleroma.Plugs.RemoteIp'] + return this.settings.settings[':pleroma']['Pleroma.Plugs.RemoteIp'] } }, methods: { diff --git a/src/views/settings/components/Esshd.vue b/src/views/settings/components/Esshd.vue index 01f9be39..c66ec01b 100644 --- a/src/views/settings/components/Esshd.vue +++ b/src/views/settings/components/Esshd.vue @@ -32,7 +32,7 @@ export default { return this.settings.description.find(setting => setting.group === ':esshd') }, esshdData() { - return this.settings.settings.esshd + return this.settings.settings[':esshd'] }, isMobile() { return this.$store.state.app.device === 'mobile' diff --git a/src/views/settings/components/Frontend.vue b/src/views/settings/components/Frontend.vue index 7c3069ea..fb969532 100644 --- a/src/views/settings/components/Frontend.vue +++ b/src/views/settings/components/Frontend.vue @@ -48,31 +48,31 @@ export default { return this.settings.description.find(setting => setting.key === ':assets') }, assetsData() { - return this.settings.settings.pleroma[':assets'] + return this.settings.settings[':pleroma'][':assets'] }, chat() { return this.settings.description.find(setting => setting.key === ':chat') }, chatData() { - return this.settings.settings.pleroma[':chat'] + return this.settings.settings[':pleroma'][':chat'] }, emoji() { return this.settings.description.find(setting => setting.key === ':emoji') }, emojiData() { - return this.settings.settings.pleroma[':emoji'] + return this.settings.settings[':pleroma'][':emoji'] }, frontend() { return this.settings.description.find(setting => setting.key === ':frontend_configurations') }, frontendData() { - return this.settings.settings.pleroma[':frontend_configurations'] + return this.settings.settings[':pleroma'][':frontend_configurations'] }, markup() { return this.settings.description.find(setting => setting.key === ':markup') }, markupData() { - return this.settings.settings.pleroma[':markup'] + return this.settings.settings[':pleroma'][':markup'] }, isMobile() { return this.$store.state.app.device === 'mobile' diff --git a/src/views/settings/components/Gopher.vue b/src/views/settings/components/Gopher.vue index cc920727..bb95aabf 100644 --- a/src/views/settings/components/Gopher.vue +++ b/src/views/settings/components/Gopher.vue @@ -23,7 +23,7 @@ export default { return this.settings.description.find(setting => setting.key === ':gopher') }, gopherData() { - return this.settings.settings.pleroma[':gopher'] + return this.settings.settings[':pleroma'][':gopher'] }, isMobile() { return this.$store.state.app.device === 'mobile' diff --git a/src/views/settings/components/Http.vue b/src/views/settings/components/Http.vue index 9c67ffd3..37100fbf 100644 --- a/src/views/settings/components/Http.vue +++ b/src/views/settings/components/Http.vue @@ -41,19 +41,19 @@ export default { return this.settings.description.find(setting => setting.group === ':cors_plug') }, corsPlugData() { - return this.settings.settings.cors_plug + return this.settings.settings[':cors_plug'] }, http() { return this.settings.description.find(setting => setting.key === ':http') }, httpData() { - return this.settings.settings.pleroma[':http'] + return this.settings.settings[':pleroma'][':http'] }, httpSecurity() { return this.settings.description.find(setting => setting.key === ':http_security') }, httpSecurityData() { - return this.settings.settings.pleroma[':http_security'] + return this.settings.settings[':pleroma'][':http_security'] }, httpSignatures() { return this.settings.description.find(setting => setting.group === ':http_signatures') @@ -74,7 +74,7 @@ export default { return this.settings.description.find(setting => setting.key === ':web_cache_ttl') }, webCacheTtlData() { - return this.settings.settings.pleroma[':web_cache_ttl'] + return this.settings.settings[':pleroma'][':web_cache_ttl'] } }, methods: { diff --git a/src/views/settings/components/Instance.vue b/src/views/settings/components/Instance.vue index e07c4f79..48f0a6e5 100644 --- a/src/views/settings/components/Instance.vue +++ b/src/views/settings/components/Instance.vue @@ -56,19 +56,19 @@ export default { 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`) }, adminTokenData() { - return this.settings.settings.pleroma[':admin_token'] + return this.settings.settings[':pleroma'][':admin_token'] }, fetchInitialPosts() { return this.settings.description.find(setting => setting.key === ':fetch_initial_posts') }, fetchInitialPostsData() { - return this.settings.settings.pleroma[':fetch_initial_posts'] + return this.settings.settings[':pleroma'][':fetch_initial_posts'] }, instance() { return this.settings.description.find(setting => setting.key === ':instance') }, instanceData() { - return this.settings.settings.pleroma[':instance'] + return this.settings.settings[':pleroma'][':instance'] }, isMobile() { return this.$store.state.app.device === 'mobile' @@ -83,31 +83,31 @@ export default { return this.settings.description.find(setting => setting.key === ':manifest') }, manifestData() { - return this.settings.settings.pleroma[':manifest'] + return this.settings.settings[':pleroma'][':manifest'] }, pleromaUser() { return this.settings.description.find(setting => setting.key === 'Pleroma.User') }, pleromaUserData() { - return this.settings.settings.pleroma['Pleroma.User'] + return this.settings.settings[':pleroma']['Pleroma.User'] }, scheduledActivity() { return this.$store.state.settings.description.find(setting => setting.key === 'Pleroma.ScheduledActivity') }, scheduledActivityData() { - return this.settings.settings.pleroma['Pleroma.ScheduledActivity'] + return this.settings.settings[':pleroma']['Pleroma.ScheduledActivity'] }, suggestions() { return this.$store.state.settings.description.find(setting => setting.key === ':suggestions') }, suggestionsData() { - return this.settings.settings.pleroma[':suggestions'] + return this.settings.settings[':pleroma'][':suggestions'] }, uriSchemes() { return this.$store.state.settings.description.find(setting => setting.key === ':uri_schemes') }, uriSchemesData() { - return this.settings.settings.pleroma[':uri_schemes'] + return this.settings.settings[':pleroma'][':uri_schemes'] } }, methods: { diff --git a/src/views/settings/components/JobQueue.vue b/src/views/settings/components/JobQueue.vue index c6b4e81a..a8c01518 100644 --- a/src/views/settings/components/JobQueue.vue +++ b/src/views/settings/components/JobQueue.vue @@ -31,7 +31,7 @@ export default { return this.settings.description.find(setting => setting.key === 'Pleroma.ActivityExpiration') }, activityExpirationData() { - return this.settings.settings.pleroma['Pleroma.ActivityExpiration'] + return this.settings.settings[':pleroma']['Pleroma.ActivityExpiration'] }, isMobile() { return this.$store.state.app.device === 'mobile' @@ -46,13 +46,13 @@ export default { return this.settings.description.find(setting => setting.key === 'Oban') }, obanQueuesData() { - return this.settings.settings.pleroma['Oban'] + return this.settings.settings[':pleroma']['Oban'] }, workers() { return this.settings.description.find(setting => setting.key === ':workers') }, workersData() { - return this.settings.settings.pleroma[':workers'] + return this.settings.settings[':pleroma'][':workers'] } }, methods: { diff --git a/src/views/settings/components/Logger.vue b/src/views/settings/components/Logger.vue index 184103cd..f8f4ed32 100644 --- a/src/views/settings/components/Logger.vue +++ b/src/views/settings/components/Logger.vue @@ -38,13 +38,13 @@ export default { return this.settings.description.find(setting => setting.key === ':console') }, consoleData() { - return this.settings.settings.logger[':console'] + return this.settings.settings[':logger'][':console'] }, exsyslogger() { return this.settings.description.find(setting => setting.key === ':ex_syslogger') }, exsysloggerData() { - return this.settings.settings.logger[':ex_syslogger'] + return this.settings.settings[':logger'][':ex_syslogger'] }, isMobile() { return this.$store.state.app.device === 'mobile' @@ -59,13 +59,13 @@ export default { return this.settings.description.find(setting => setting.group === ':logger') }, loggerData() { - return this.settings.settings.logger[':backends'] + return this.settings.settings[':logger'][':backends'] }, quack() { return this.settings.description.find(setting => setting.group === ':quack') }, quackData() { - return this.settings.settings.quack + return this.settings.settings[':quack'] } }, methods: { diff --git a/src/views/settings/components/MRF.vue b/src/views/settings/components/MRF.vue index d0970c8c..fd3be846 100644 --- a/src/views/settings/components/MRF.vue +++ b/src/views/settings/components/MRF.vue @@ -60,49 +60,49 @@ export default { return this.settings.description.find(setting => setting.key === ':mrf_simple') }, mrfSimpleData() { - return this.settings.settings.pleroma[':mrf_simple'] + return this.settings.settings[':pleroma'][':mrf_simple'] }, mrfRejectnonpublic() { return this.settings.description.find(setting => setting.key === ':mrf_rejectnonpublic') }, mrfRejectnonpublicData() { - return this.settings.settings.pleroma[':mrf_rejectnonpublic'] + return this.settings.settings[':pleroma'][':mrf_rejectnonpublic'] }, mrfHellthread() { return this.settings.description.find(setting => setting.key === ':mrf_hellthread') }, mrfHellthreadData() { - return this.settings.settings.pleroma[':mrf_hellthread'] + return this.settings.settings[':pleroma'][':mrf_hellthread'] }, mrfKeyword() { return this.settings.description.find(setting => setting.key === ':mrf_keyword') }, mrfKeywordData() { - return this.settings.settings.pleroma[':mrf_keyword'] + return this.settings.settings[':pleroma'][':mrf_keyword'] }, mrfSubchain() { return this.settings.description.find(setting => setting.key === ':mrf_subchain') }, mrfSubchainData() { - return this.settings.settings.pleroma[':mrf_subchain'] + return this.settings.settings[':pleroma'][':mrf_subchain'] }, mrfMention() { return this.settings.description.find(setting => setting.key === ':mrf_mention') }, mrfMentionData() { - return this.settings.settings.pleroma[':mrf_mention'] + return this.settings.settings[':pleroma'][':mrf_mention'] }, mrfNormalizeMarkup() { return this.settings.description.find(setting => setting.key === ':mrf_normalize_markup') }, mrfNormalizeMarkupData() { - return this.settings.settings.pleroma[':mrf_normalize_markup'] + return this.settings.settings[':pleroma'][':mrf_normalize_markup'] }, mrfVocabulary() { return this.settings.description.find(setting => setting.key === ':mrf_vocabulary') }, mrfVocabularyData() { - return this.settings.settings.pleroma[':mrf_vocabulary'] + return this.settings.settings[':pleroma'][':mrf_vocabulary'] } }, methods: { diff --git a/src/views/settings/components/Mailer.vue b/src/views/settings/components/Mailer.vue index a0c5d2fc..4640ad2f 100644 --- a/src/views/settings/components/Mailer.vue +++ b/src/views/settings/components/Mailer.vue @@ -34,7 +34,7 @@ export default { return this.settings.description.find(setting => setting.key === ':email_notifications') }, emailNotificationsData() { - return this.settings.settings.pleroma[':email_notifications'] + return this.settings.settings[':pleroma'][':email_notifications'] }, isMobile() { return this.$store.state.app.device === 'mobile' @@ -49,13 +49,13 @@ export default { return this.settings.description.find(setting => setting.key === 'Pleroma.Emails.Mailer') }, mailerData() { - return this.settings.settings.pleroma['Pleroma.Emails.Mailer'] + return this.settings.settings[':pleroma']['Pleroma.Emails.Mailer'] }, userEmail() { return this.settings.description.find(setting => setting.key === 'Pleroma.Emails.UserEmail') }, userEmailData() { - return this.settings.settings.pleroma['Pleroma.Emails.UserEmail'] + return this.settings.settings[':pleroma']['Pleroma.Emails.UserEmail'] } }, methods: { diff --git a/src/views/settings/components/MediaProxy.vue b/src/views/settings/components/MediaProxy.vue index a86df65d..6ec5427c 100644 --- a/src/views/settings/components/MediaProxy.vue +++ b/src/views/settings/components/MediaProxy.vue @@ -32,7 +32,7 @@ export default { return this.settings.description.find(setting => setting.key === ':media_proxy') }, mediaProxyData() { - return this.settings.settings.pleroma[':media_proxy'] + return this.settings.settings[':pleroma'][':media_proxy'] } }, methods: { diff --git a/src/views/settings/components/Metadata.vue b/src/views/settings/components/Metadata.vue index 8cda1d86..a13d676b 100644 --- a/src/views/settings/components/Metadata.vue +++ b/src/views/settings/components/Metadata.vue @@ -38,13 +38,13 @@ export default { return this.settings.description.find(setting => setting.key === 'Pleroma.Web.Metadata') }, metadataData() { - return this.settings.settings.pleroma['Pleroma.Web.Metadata'] + return this.settings.settings[':pleroma']['Pleroma.Web.Metadata'] }, richMedia() { return this.settings.description.find(setting => setting.key === ':rich_media') }, richMediaData() { - return this.settings.settings.pleroma[':rich_media'] + return this.settings.settings[':pleroma'][':rich_media'] } }, methods: { diff --git a/src/views/settings/components/Other.vue b/src/views/settings/components/Other.vue index d7172320..650e08e2 100644 --- a/src/views/settings/components/Other.vue +++ b/src/views/settings/components/Other.vue @@ -38,13 +38,13 @@ export default { return this.settings.description.find(setting => setting.group === ':mime') }, mimeTypesData() { - return this.settings.settings.mime[':types'] + return this.settings.settings[':mime'][':types'] }, teslaAdapter() { return this.settings.description.find(setting => setting.group === ':tesla') }, teslaAdapterData() { - return this.settings.settings.tesla[':adapter'] + return this.settings.settings[':tesla'][':adapter'] } }, methods: { diff --git a/src/views/settings/components/RateLimiters.vue b/src/views/settings/components/RateLimiters.vue index 5e853ef8..fa5259eb 100644 --- a/src/views/settings/components/RateLimiters.vue +++ b/src/views/settings/components/RateLimiters.vue @@ -23,7 +23,7 @@ export default { return this.settings.description.find(setting => setting.key === ':rate_limit') }, rateLimitersData() { - return this.settings.settings.pleroma[':rate_limit'] + return this.settings.settings[':pleroma'][':rate_limit'] }, isMobile() { return this.$store.state.app.device === 'mobile' diff --git a/src/views/settings/components/Upload.vue b/src/views/settings/components/Upload.vue index 1beb2f9d..df980f77 100644 --- a/src/views/settings/components/Upload.vue +++ b/src/views/settings/components/Upload.vue @@ -53,37 +53,37 @@ export default { return this.settings.description.find(setting => setting.key === 'Pleroma.Upload') }, uploadData() { - return this.settings.settings.pleroma['Pleroma.Upload'] + return this.settings.settings[':pleroma']['Pleroma.Upload'] }, uploadersLocal() { return this.settings.description.find(setting => setting.key === 'Pleroma.Uploaders.Local') }, uploadersLocalData() { - return this.settings.settings.pleroma['Pleroma.Uploaders.Local'] + return this.settings.settings[':pleroma']['Pleroma.Uploaders.Local'] }, uploadersS3() { return this.settings.description.find(setting => setting.key === 'Pleroma.Uploaders.S3') }, uploadersS3Data() { - return this.settings.settings.pleroma['Pleroma.Uploaders.S3'] + return this.settings.settings[':pleroma']['Pleroma.Uploaders.S3'] }, uploadersMDII() { return this.settings.description.find(setting => setting.key === 'Pleroma.Uploaders.MDII') }, uploadersMDIIData() { - return this.settings.settings.pleroma['Pleroma.Uploaders.MDII'] + return this.settings.settings[':pleroma']['Pleroma.Uploaders.MDII'] }, uploadFilterMogrify() { return this.settings.description.find(setting => setting.key === 'Pleroma.Upload.Filter.Mogrify') }, uploadFilterMogrifyData() { - return this.settings.settings.pleroma['Pleroma.Upload.Filter.Mogrify'] + return this.settings.settings[':pleroma']['Pleroma.Upload.Filter.Mogrify'] }, uploadAnonymizeFilename() { return this.settings.description.find(setting => setting.key === 'Pleroma.Upload.Filter.AnonymizeFilename') }, uploadAnonymizeFilenameData() { - return this.settings.settings.pleroma['Pleroma.Upload.Filter.AnonymizeFilename'] + return this.settings.settings[':pleroma']['Pleroma.Upload.Filter.AnonymizeFilename'] } }, methods: { diff --git a/src/views/settings/components/WebPush.vue b/src/views/settings/components/WebPush.vue index 15cff61a..51324668 100644 --- a/src/views/settings/components/WebPush.vue +++ b/src/views/settings/components/WebPush.vue @@ -32,7 +32,7 @@ export default { return this.settings.description.find(setting => setting.key === ':vapid_details') }, vapidDetailsData() { - return this.settings.settings.web_push_encryption[':vapid_details'] + return this.settings.settings[':web_push_encryption'][':vapid_details'] } }, methods: {