-
Notifications
You must be signed in to change notification settings - Fork 5
legg til ny applikasjons versjon markering #6817
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
base: master
Are you sure you want to change the base?
Conversation
e7393a6 to
f926cd2
Compare
f926cd2 to
f7328dc
Compare
|
tor-nav
left a comment
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.
Nyttig!
| const [serverVersjon, setServerVersjon] = useState<string | null>(null); | ||
| const [nyVersjonTilgjengelig, setNyVersjonTilgjengelig] = useState(false); | ||
|
|
||
| const [klientVersjon, setKlientVersjon] = useState<string | null>(null); |
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.
dette er pirk på høgt nivå, men for meg hadde det vore meir naturleg at linje 7 og 9 byttar plass
| const visLos = (e: React.SyntheticEvent) => { | ||
| if (e.type === 'click') { | ||
| void navigate('/'); | ||
| window.location.reload(); |
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.
og eit par sonar-varsel på å bruka globalThis i staden for window
| "DekoratorMedFeilviserSakIndex.EndreTilLysTema": "Endre til lyst tema", | ||
| "DekoratorMedFeilviserSakIndex.EndreTilMorkTema": "Endre til mørkt tema" | ||
| "DekoratorMedFeilviserSakIndex.EndreTilMorkTema": "Endre til mørkt tema", | ||
| "DekoratorMedFeilviserSakIndex.NyVersjon": "Det finnes en ny versjon av applikasjonen. Klikk for å laste siden på nytt." |
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.
Kanskje si fra hvis man mister arbeidet (det man har skrevet i begrunnelse / brev)
| </InternalHeader.Title> | ||
| <Spacer /> | ||
| {nyVersjonTilgjengelig && ( | ||
| <InternalHeader.Button onClick={() => window.location.reload()}> |
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.
Blir Button synlig når man står inne i en åpen sak? Risiko for å miste arbeidet?
Gjør reload at man blir stående med aktuell sak / behandling eller havner man annet sted ?
Tenker det er nyttig at vi er tydelige dersom man evt mister arbeid.



No description provided.