Fix: disable email workflow type if email not enabled

This commit is contained in:
shamoon committed 2024-12-24 09:31:59 -08:00
1 parent 5007855904
commit 8291ec17d4
7 files changed
+46 -20

No files matched your search

+6
View File
@@ -70,6 +70,7 @@ export const SETTINGS_KEYS = {
EMPTY_TRASH_DELAY: 'trash_delay',
GMAIL_OAUTH_URL: 'gmail_oauth_url',
OUTLOOK_OAUTH_URL: 'outlook_oauth_url',
EMAIL_ENABLED: 'email_enabled',
}
export const SETTINGS: UiSetting[] = [
@@ -263,4 +264,9 @@ export const SETTINGS: UiSetting[] = [
type: 'string',
default: null,
},
{
key: SETTINGS_KEYS.EMAIL_ENABLED,
type: 'boolean',
default: false,
},
]