-
Notifications
You must be signed in to change notification settings - Fork 1
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
Utbedre tildel oppgave - preprod #2868
The head ref may contain hidden characters: "dr\u00F8ye-sjekk-tildel-oppgave"
Conversation
…t slik at systeme får litt lenger tid.
… Skal ikke vise komponenten for tildeling av oppgave når den har blitt tatt over.
}; | ||
|
||
const sjekkOmDetHarGåttMistTiSekunderSidenBehandlingBleOpprettet = ( | ||
const sjekkOmDetHarGåttMistEttMinuttSidenBehandlingenBleOpprettet = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hvorfor trenger vi denne sjekken?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Når en behandling har blitt opprettet tar det litt tid før ansvarlig saksbehandler blir satt - derfor er ikke sjekken med ansvarlig alltid nok.
settOppgaveTilSaksbehandler() | ||
.then(() => { | ||
hentAnsvarligSaksbehandler.rerun(); | ||
settHarTildetOppgave(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hvorfor trengs denne? Burde ikke hentAnsvarligSaksbehandler.rerun()
være nok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Den er nødvendig fordi erTilordnetOgInnloggetSaksbehandlerDenSamme ikke blir oppdatert med engang - det finnes sikkert andre måter å gjøre det på, men syntes at denne var enklest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skjønner, tenkte ikke over den...
@@ -48,6 +48,18 @@ export const Toast: React.FC = () => { | |||
<AlertSuccess>{toastTilTekst[toast]}</AlertSuccess> | |||
</ContainerTopMiddle> | |||
); | |||
case EToast.TILDEL_OPPGAVE_VELlYKKET: | |||
return ( | |||
<ContainerTopMiddle> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
src/frontend/Felles/Toast/Toast.tsx
Outdated
case EToast.TILDEL_OPPGAVE_FEILET: | ||
return ( | ||
<ContainerTopMiddle> | ||
<AlertError>{toastTilTekst[toast]}</AlertError> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bør vi heller gi ut en fornuftig feilmelding under knappen istedenfor feilmelding i toast?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enig - jeg ble litt for ivrig med toasten her 🍞
navigate(`/behandling/${behandlingId}/arsak-revurdering`); | ||
}) | ||
.catch((error) => { | ||
console.error(error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hvis vi får inn Ressurs her så kan vi plukke ut feilmeldingen og sette en tilstand som viser den frem.
Men husk å nulle ut feilmelding når man trykker på tildel-knappen :)
…er feilmelding med alert i stedet for toast.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ser bra ut nå!
Hvorfor er denne endringen nødvendig? ✨