Skip to content
Snippets Groups Projects
Unverified Commit 88833b24 authored by Murtaza Patrawala's avatar Murtaza Patrawala Committed by GitHub
Browse files

fix: Google Maps config settings not visible (#31002)

parent ec5005fe
No related branches found
No related tags found
No related merge requests found
---
"@rocket.chat/meteor": patch
---
fix: Google Maps and Katex config settings were not visible
......@@ -337,23 +337,23 @@ export const createMessageSettings = () =>
public: true,
});
await this.section('Katex', async () => {
await this.section('Katex', async function () {
const enableQuery = {
_id: 'Katex_Enabled',
value: true,
};
await settingsRegistry.add('Katex_Enabled', true, {
await this.add('Katex_Enabled', true, {
type: 'boolean',
public: true,
i18nDescription: 'Katex_Enabled_Description',
});
await settingsRegistry.add('Katex_Parenthesis_Syntax', true, {
await this.add('Katex_Parenthesis_Syntax', true, {
type: 'boolean',
public: true,
enableQuery,
i18nDescription: 'Katex_Parenthesis_Syntax_Description',
});
await settingsRegistry.add('Katex_Dollar_Syntax', false, {
await this.add('Katex_Dollar_Syntax', false, {
type: 'boolean',
public: true,
enableQuery,
......@@ -361,14 +361,14 @@ export const createMessageSettings = () =>
});
});
await this.section('Google Maps', async () => {
await settingsRegistry.add('MapView_Enabled', false, {
await this.section('Google Maps', async function () {
await this.add('MapView_Enabled', false, {
type: 'boolean',
public: true,
i18nLabel: 'MapView_Enabled',
i18nDescription: 'MapView_Enabled_Description',
});
await settingsRegistry.add('MapView_GMapsAPIKey', '', {
await this.add('MapView_GMapsAPIKey', '', {
type: 'string',
public: true,
i18nLabel: 'MapView_GMapsAPIKey',
......
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