Skip to content

Commit

Permalink
IS-1753: Remove toggle enabled in prod (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersrognstad authored Nov 6, 2023
1 parent 1d079c7 commit 1661f4c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions server/unleash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,5 @@ export const getToggles = (veilederId: any, enhetId: any) => {
context
),
isHuskelappEnabled: unleash.isEnabled('isHuskelappEnabled', context),
isBehandlerBerOmBistandEnabled: unleash.isEnabled(
'isBehandlerBerOmBistandEnabled',
context
),
};
};
3 changes: 1 addition & 2 deletions src/components/HendelseTypeFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,14 @@ const showCheckbox = (
case 'DIALOGMOTESVAR':
case 'MOTEBEHOV':
case 'ARBEIDSGIVER_BISTAND':
case 'BEHANDLER_BER_OM_BISTAND':
return true;
case 'UFORDELTE_BRUKERE':
return tabType === OverviewTabType.ENHET_OVERVIEW;
case 'AKTIVITETSKRAV_VURDER_STANS':
return toggles.isSendingAvForhandsvarselEnabled;
case 'HUSKELAPP':
return toggles.isHuskelappEnabled;
case 'BEHANDLER_BER_OM_BISTAND':
return toggles.isBehandlerBerOmBistandEnabled;
}
};

Expand Down
2 changes: 0 additions & 2 deletions src/data/unleash/types/unleash_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

0 comments on commit 1661f4c

Please sign in to comment.