Fix-issue-370 (#9996)
Fixes the issue from introduced when alowing gmail and outlook. fixes https://github.com/twentyhq/core-team-issues/issues/370
This commit is contained in:
@ -127,4 +127,16 @@ export class ClientConfig {
|
||||
|
||||
@Field(() => [PublicFeatureFlag])
|
||||
publicFeatureFlags: PublicFeatureFlag[];
|
||||
|
||||
@Field(() => Boolean)
|
||||
isMicrosoftMessagingEnabled: boolean;
|
||||
|
||||
@Field(() => Boolean)
|
||||
isMicrosoftCalendarEnabled: boolean;
|
||||
|
||||
@Field(() => Boolean)
|
||||
isGoogleMessagingEnabled: boolean;
|
||||
|
||||
@Field(() => Boolean)
|
||||
isGoogleCalendarEnabled: boolean;
|
||||
}
|
||||
|
||||
@ -77,6 +77,18 @@ export class ClientConfigResolver {
|
||||
this.environmentService.get('DEBUG_MODE') ||
|
||||
this.environmentService.get('IS_BILLING_ENABLED'),
|
||||
publicFeatureFlags: PUBLIC_FEATURE_FLAGS,
|
||||
isMicrosoftMessagingEnabled: this.environmentService.get(
|
||||
'MESSAGING_PROVIDER_MICROSOFT_ENABLED',
|
||||
),
|
||||
isMicrosoftCalendarEnabled: this.environmentService.get(
|
||||
'CALENDAR_PROVIDER_MICROSOFT_ENABLED',
|
||||
),
|
||||
isGoogleMessagingEnabled: this.environmentService.get(
|
||||
'MESSAGING_PROVIDER_GMAIL_ENABLED',
|
||||
),
|
||||
isGoogleCalendarEnabled: this.environmentService.get(
|
||||
'CALENDAR_PROVIDER_GOOGLE_ENABLED',
|
||||
),
|
||||
};
|
||||
|
||||
return Promise.resolve(clientConfig);
|
||||
|
||||
Reference in New Issue
Block a user