Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IS-2895: Ikke resette enhet #237

Merged
merged 5 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading