Fix: disable email workflow type if email not enabled

This commit is contained in:
shamoon
2024-12-24 09:31:59 -08:00
parent 5007855904
commit 8291ec17d4
7 changed files with 46 additions and 20 deletions

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,
},
]