From 82ca9121437dad9c7ff3880bdf4523853f1e1abc Mon Sep 17 00:00:00 2001 From: Pavel Zavora Date: Wed, 12 Aug 2020 14:00:35 +0200 Subject: [PATCH] feat(notification/teams): add feature flag --- .../endpoints/components/EndpointTypeDropdown.tsx | 3 +++ ui/src/shared/selectors/flags.ts | 2 ++ 2 files changed, 5 insertions(+) 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 => {