(core) Adding a flag for the UI to check if emails are enabled

Summary:
Front-end code can now test if emails are enabled
and hide some parts of UI based on it.

Test Plan:
Only secondery text was hidden on add users dialog.
Tested manually.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Subscribers: georgegevoian

Differential Revision: https://phab.getgrist.com/D4221
This commit is contained in:
Jarosław Sadziński
2024-04-02 13:22:58 +02:00
parent c87d835533
commit 03ead0d1ca
7 changed files with 23 additions and 12 deletions

View File

@@ -786,6 +786,9 @@ export interface GristLoadConfig {
canCloseAccount?: boolean;
experimentalPlugins?: boolean;
// If backend has an email service for sending notifications.
notifierEnabled?: boolean;
}
export const Features = StringUnion(