diff --git a/ui/src/notifications/endpoints/components/EndpointTypeDropdown.tsx b/ui/src/notifications/endpoints/components/EndpointTypeDropdown.tsx index bc478bd2de3..98b83a2c95e 100644 --- a/ui/src/notifications/endpoints/components/EndpointTypeDropdown.tsx +++ b/ui/src/notifications/endpoints/components/EndpointTypeDropdown.tsx @@ -22,6 +22,9 @@ function isFlaggedOn(type: string) { if (type === 'telegram') { return isFlagEnabled('notification-endpoint-telegram') } + if (type === 'teams') { + return isFlagEnabled('notification-endpoint-teams') + } return true } diff --git a/ui/src/shared/selectors/flags.ts b/ui/src/shared/selectors/flags.ts index 95d8d886621..0bd708412d2 100644 --- a/ui/src/shared/selectors/flags.ts +++ b/ui/src/shared/selectors/flags.ts @@ -17,6 +17,7 @@ export const OSS_FLAGS = { 'notebook-panel--test-flux': false, disableDefaultTableSort: false, 'notification-endpoint-telegram': false, + 'notification-endpoint-teams': false, } export const CLOUD_FLAGS = { @@ -35,6 +36,7 @@ export const CLOUD_FLAGS = { 'notebook-panel--test-flux': false, disableDefaultTableSort: false, 'notification-endpoint-telegram': false, + 'notification-endpoint-teams': false, } export const activeFlags = (state: AppState): FlagMap => {