Skip to content

Commit

Permalink
IS-2895: Ikke resette enhet (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
geir-waagboe authored Dec 12, 2024
1 parent 91b2b14 commit 7004eb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/decorator/decoratorProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export interface DecoratorProps {
environment: Environment; // Miljø som skal brukes.
urlFormat: UrlFormat; // URL format
proxy?: string | undefined; // Manuell overstyring av urlene til BFFs. Gjør alle kall til relativt path hvis true, og bruker verdien som domene om satt til en string. Default: false
fnrSyncMode: "sync" | "writeOnly"; // Modus til fnr state management. "sync" er default. "writeOnly" gjør at endringer aldri hentes men vil settes dersom det oppdateres lokalt i appen
enhetSyncMode?: "sync" | "writeOnly"; // Samme som fnrSyncMode, men for enhet state.
fnrSyncMode: "sync" | "writeOnly" | "ignore"; // Modus til fnr state management. "sync" er default. "writeOnly" gjør at endringer aldri hentes men vil settes dersom det oppdateres lokalt i appen
enhetSyncMode?: "sync" | "writeOnly" | "ignore"; // Samme som fnrSyncMode, men for enhet state.
}

export interface Markup {
Expand Down
3 changes: 1 addition & 2 deletions src/decorator/decoratorconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { erAnsattDev, erDev, erLokal, erProd } from "@/utils/miljoUtil";
const decoratorConfig = (setFnr: (fnr: string) => void): DecoratorProps => {
return {
appName: "Sykefraværsoppfølging",
fetchActiveEnhetOnMount: false,
fetchActiveEnhetOnMount: true,
onEnhetChanged: () => {
// do nothing
},
Expand All @@ -20,7 +20,6 @@ const decoratorConfig = (setFnr: (fnr: string) => void): DecoratorProps => {
urlFormat: getUrlFormat(),
proxy: "/modiacontextholder",
fnrSyncMode: "writeOnly",
enhetSyncMode: "writeOnly",
};
};

Expand Down

0 comments on commit 7004eb3

Please sign in to comment.