diff --git a/frontend/src/components/instance_config/ConfigDialog.vue b/frontend/src/components/instance_config/ConfigDialog.vue index 1fb2ad0ccd0cc32a8ee80282006fcf96d8dd9e42..feac2810ca97ddf9eeac7540396d6cc67cec7f04 100644 --- a/frontend/src/components/instance_config/ConfigDialog.vue +++ b/frontend/src/components/instance_config/ConfigDialog.vue @@ -55,10 +55,18 @@ export default { loading: true, show: true, selected: [], + + // config fields that should be ignored entirely go here + ignoredFields: ['registrationPassword'] } }, computed: { - instanceSettings: () => { return ConfigModule.state.config.instanceSettings }, + instanceSettings: function () { + const filtered = Object.entries(ConfigModule.state.config.instanceSettings) + .filter(([key,]) => !this.ignoredFields.includes(key)) + console.log(filtered) + return Object.fromEntries(filtered) + }, }, watch: { show (val) { @@ -100,4 +108,4 @@ export default { } } -</script> \ No newline at end of file +</script> diff --git a/frontend/src/models.ts b/frontend/src/models.ts index 5f84f7e90ff670c0e845dc1d3b01bea26774a0c0..de82f12d4f38f6420dde46c422ed9338f2920760 100644 --- a/frontend/src/models.ts +++ b/frontend/src/models.ts @@ -2,7 +2,7 @@ export interface Config { timeDelta: number version: string, instanceSettings: { - [config: string]: boolean, + [config: string]: boolean, } } @@ -898,4 +898,4 @@ export interface GitlabRelease { description_html: string -} \ No newline at end of file +} diff --git a/frontend/yarn.lock b/frontend/yarn.lock index cc0bb390e26ea8264a509073a00a6c0e1d57cbdd..1fa26fa55abecd870eaa200b6c864ec2ede2a1af 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -144,67 +144,6 @@ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== -"@sentry/browser@^5.6.3": - version "5.6.3" - resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-5.6.3.tgz#5cc37b0443eba55ad13c13d34d6b95ff30dfbfe3" - integrity sha512-bP1LTbcKPOkkmfJOAM6c7WZ0Ov0ZEW6B9keVZ9wH9fw/lBPd9UyDMDCwJ+FAYKz9M9S5pxQeJ4Ebd7WUUrGVAQ== - dependencies: - "@sentry/core" "5.6.2" - "@sentry/types" "5.6.1" - "@sentry/utils" "5.6.1" - tslib "^1.9.3" - -"@sentry/core@5.6.2": - version "5.6.2" - resolved "https://registry.yarnpkg.com/@sentry/core/-/core-5.6.2.tgz#8c5477654a83ebe41a72e86a79215deb5025e418" - integrity sha512-grbjvNmyxP5WSPR6UobN2q+Nss7Hvz+BClBT8QTr7VTEG5q89TwNddn6Ej3bGkaUVbct/GpVlI3XflWYDsnU6Q== - dependencies: - "@sentry/hub" "5.6.1" - "@sentry/minimal" "5.6.1" - "@sentry/types" "5.6.1" - "@sentry/utils" "5.6.1" - tslib "^1.9.3" - -"@sentry/hub@5.6.1": - version "5.6.1" - resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-5.6.1.tgz#9f355c0abcc92327fbd10b9b939608aa4967bece" - integrity sha512-m+OhkIV5yTAL3R1+XfCwzUQka0UF/xG4py8sEfPXyYIcoOJ2ZTX+1kQJLy8QQJ4RzOBwZA+DzRKP0cgzPJ3+oQ== - dependencies: - "@sentry/types" "5.6.1" - "@sentry/utils" "5.6.1" - tslib "^1.9.3" - -"@sentry/integrations@^5.6.1": - version "5.6.1" - resolved "https://registry.yarnpkg.com/@sentry/integrations/-/integrations-5.6.1.tgz#fcee1a6e5535a07fdefd365178662283279ce0d7" - integrity sha512-bPtJbmhLDH9Exy0luIKxjlfqmuyAjUPTHZ2CLIw6YlhA5WgK9aYyyjLHTmWK+E9baZBqSp0ShVPAgue2jfpQmQ== - dependencies: - "@sentry/types" "5.6.1" - "@sentry/utils" "5.6.1" - tslib "^1.9.3" - -"@sentry/minimal@5.6.1": - version "5.6.1" - resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-5.6.1.tgz#09d92b26de0b24555cd50c3c33ba4c3e566009a1" - integrity sha512-ercCKuBWHog6aS6SsJRuKhJwNdJ2oRQVWT2UAx1zqvsbHT9mSa8ZRjdPHYOtqY3DoXKk/pLUFW/fkmAnpdMqRw== - dependencies: - "@sentry/hub" "5.6.1" - "@sentry/types" "5.6.1" - tslib "^1.9.3" - -"@sentry/types@5.6.1": - version "5.6.1" - resolved "https://registry.yarnpkg.com/@sentry/types/-/types-5.6.1.tgz#5915e1ee4b7a678da3ac260c356b1cb91139a299" - integrity sha512-Kub8TETefHpdhvtnDj3kKfhCj0u/xn3Zi2zIC7PB11NJHvvPXENx97tciz4roJGp7cLRCJsFqCg4tHXniqDSnQ== - -"@sentry/utils@5.6.1": - version "5.6.1" - resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-5.6.1.tgz#69d9e151e50415bc91f2428e3bcca8beb9bc2815" - integrity sha512-rfgha+UsHW816GqlSRPlniKqAZylOmQWML2JsujoUP03nPu80zdN43DK9Poy/d9OxBxv0gd5K2n+bFdM2kqLQQ== - dependencies: - "@sentry/types" "5.6.1" - tslib "^1.9.3" - "@sinonjs/commons@^1.0.2", "@sinonjs/commons@^1.2.0": version "1.3.0" resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.3.0.tgz#50a2754016b6f30a994ceda6d9a0a8c36adda849" @@ -8294,11 +8233,6 @@ tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" integrity sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ== -tslib@^1.9.3: - version "1.10.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" - integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ== - tslint@^5.15.0: version "5.20.0" resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.20.0.tgz#fac93bfa79568a5a24e7be9cdde5e02b02d00ec1"