From 1661f4c78cfc6cd1a1d952d28bffa9cfaf4fdfc8 Mon Sep 17 00:00:00 2001 From: Anders Rognstad <79838644+andersrognstad@users.noreply.github.com> Date: Mon, 6 Nov 2023 14:29:29 +0100 Subject: [PATCH] IS-1753: Remove toggle enabled in prod (#371) --- server/unleash.ts | 4 ---- src/components/HendelseTypeFilter.tsx | 3 +-- src/data/unleash/types/unleash_types.ts | 2 -- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/server/unleash.ts b/server/unleash.ts index c496564a..53423b05 100644 --- a/server/unleash.ts +++ b/server/unleash.ts @@ -47,9 +47,5 @@ export const getToggles = (veilederId: any, enhetId: any) => { context ), isHuskelappEnabled: unleash.isEnabled('isHuskelappEnabled', context), - isBehandlerBerOmBistandEnabled: unleash.isEnabled( - 'isBehandlerBerOmBistandEnabled', - context - ), }; }; diff --git a/src/components/HendelseTypeFilter.tsx b/src/components/HendelseTypeFilter.tsx index 2e331e85..73a708d2 100644 --- a/src/components/HendelseTypeFilter.tsx +++ b/src/components/HendelseTypeFilter.tsx @@ -147,6 +147,7 @@ const showCheckbox = ( case 'DIALOGMOTESVAR': case 'MOTEBEHOV': case 'ARBEIDSGIVER_BISTAND': + case 'BEHANDLER_BER_OM_BISTAND': return true; case 'UFORDELTE_BRUKERE': return tabType === OverviewTabType.ENHET_OVERVIEW; @@ -154,8 +155,6 @@ const showCheckbox = ( return toggles.isSendingAvForhandsvarselEnabled; case 'HUSKELAPP': return toggles.isHuskelappEnabled; - case 'BEHANDLER_BER_OM_BISTAND': - return toggles.isBehandlerBerOmBistandEnabled; } }; diff --git a/src/data/unleash/types/unleash_types.ts b/src/data/unleash/types/unleash_types.ts index 43063d70..976e8870 100644 --- a/src/data/unleash/types/unleash_types.ts +++ b/src/data/unleash/types/unleash_types.ts @@ -7,12 +7,10 @@ export enum ToggleNames { isMotebehovTilbakemeldingEnabled = 'isMotebehovTilbakemeldingEnabled', isSendingAvForhandsvarselEnabled = 'isSendingAvForhandsvarselEnabled', isHuskelappEnabled = 'isHuskelappEnabled', - isBehandlerBerOmBistandEnabled = 'isBehandlerBerOmBistandEnabled', } export const defaultToggles: Toggles = { isMotebehovTilbakemeldingEnabled: false, isSendingAvForhandsvarselEnabled: false, isHuskelappEnabled: false, - isBehandlerBerOmBistandEnabled: false, };