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

Sende brev uten fagsak #2912

Merged
merged 13 commits into from
Sep 30, 2024
Merged

Sende brev uten fagsak #2912

merged 13 commits into from
Sep 30, 2024

Conversation

ViktorGSolberg
Copy link
Contributor

@ViktorGSolberg ViktorGSolberg commented Sep 30, 2024

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Comment on lines 69 to 80
<Heading size={'medium'} level={'1'}>
Opprett fagsak manuelt
</Heading>
<AlertInfoPreWrap>
<BodyLong>
Denne funksjonen skal brukes hvis du trenger å sende et brev til bruker uten en
fagsak.
</BodyLong>
<BodyLong>
Et typisk scenario for bruk er når du skal sende et innhentingsbrev til bruker
for å vurdere retten til overgangsstønad.
</BodyLong>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Denne teksten skal avklares med Mirja og Lars før merge :)


useEffect(() => {
if (fagsak.status === RessursStatus.SUKSESS) {
hentFagsakPerson(fagsakPersonId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mulig jeg er litt treig - men blir man redirectet eller skjer det en sidelast som gjør at man kommer "bort" fra opprett-bildet til brev-bildet?

Ikke så lett å forstå sånn uten videre

Copy link
Contributor Author

@ViktorGSolberg ViktorGSolberg Sep 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nei, enig i det. Det som skjer er at man oppretter en fagsak og deretter henter den. Deretter vil denne useEffecten trigges og hente fagsakPerson på nytt. Et hakk opp i komponenthierarkiet vil vi derfor rendre brevfanen i stedet, siden vi nå har en fagsak på denne personen 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La til en kommentar b037cee

@ViktorGSolberg ViktorGSolberg merged commit 0e4c8dc into main Sep 30, 2024
1 check passed
@ViktorGSolberg ViktorGSolberg deleted the sende-brev-uten-fagsak branch September 30, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants