Skip to content

Commit

Permalink
fix: Google Maps config settings not visible (#31002)
Browse files Browse the repository at this point in the history
  • Loading branch information
murtaza98 committed Nov 17, 2023
1 parent ec5005f commit 88833b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-socks-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

fix: Google Maps and Katex config settings were not visible
14 changes: 7 additions & 7 deletions apps/meteor/server/settings/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,38 +337,38 @@ 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,
i18nDescription: 'Katex_Dollar_Syntax_Description',
});
});

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',
Expand Down

0 comments on commit 88833b2

Please sign in to comment.