Skip to content

Commit

Permalink
Skal rehente ansvarlig saksbehandler når en behandling sendes til bes…
Browse files Browse the repository at this point in the history
…lutter eller den godkjennes
  • Loading branch information
charliemidtlyng committed Oct 3, 2024
1 parent 79e358e commit 821939c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,13 @@ const FatterVedtak: React.FC<{
const [erSimuleringsresultatEndret, settErSimuleringsresultatEndret] = useState<boolean>(false);

const { axiosRequest, settToast } = useApp();
const { hentBehandlingshistorikk, hentTotrinnskontroll, hentVedtak, vedtaksresultat } =
useBehandling();
const {
hentBehandlingshistorikk,
hentTotrinnskontroll,
hentVedtak,
vedtaksresultat,
hentAnsvarligSaksbehandler,
} = useBehandling();

const navigate = useNavigate();

Expand Down Expand Up @@ -121,6 +126,7 @@ const FatterVedtak: React.FC<{
hentBehandlingshistorikk.rerun();
hentVedtak.rerun();
hentTotrinnskontroll.rerun();
hentAnsvarligSaksbehandler.rerun();
settVisGodkjentModal(true);
} else {
settToast(EToast.VEDTAK_UNDERKJENT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const SendTilBeslutterFooter: React.FC<{
if (res.status === RessursStatus.SUKSESS) {
hentBehandling.rerun();
hentVedtak.rerun();
hentAnsvarligSaksbehandler.rerun();
hentTotrinnskontroll.rerun();
settVisModal(true);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,13 @@ const SendtTilBeslutter: React.FC<{
behandlingId: string;
}> = ({ totrinnskontroll, behandlingId }) => {
const { axiosRequest } = useApp();
const { hentBehandling, hentVedtak, hentTotrinnskontroll, hentBehandlingshistorikk } =
useBehandling();
const {
hentBehandling,
hentVedtak,
hentTotrinnskontroll,
hentBehandlingshistorikk,
hentAnsvarligSaksbehandler,
} = useBehandling();
const [feilmelding, settFeilmelding] = useState<string>('');
const [laster, settLaster] = useState(false);

Expand All @@ -146,6 +151,7 @@ const SendtTilBeslutter: React.FC<{
hentVedtak.rerun();
hentTotrinnskontroll.rerun();
hentBehandlingshistorikk.rerun();
hentAnsvarligSaksbehandler.rerun();
} else {
settFeilmelding(res.frontendFeilmelding);
}
Expand Down

0 comments on commit 821939c

Please sign in to comment.