Skip to content

Commit

Permalink
feat(notification/teams): add feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sranka committed Aug 12, 2020
1 parent 9e48ef5 commit 82ca912
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 2 additions & 0 deletions ui/src/shared/selectors/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 => {
Expand Down

0 comments on commit 82ca912

Please sign in to comment.