Skip to content

Commit

Permalink
Viser tag i Personlinje hvis person er skjermet
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbyfl committed Sep 13, 2023
1 parent 9fd404c commit 6a61089
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/src/saksbilde/Personlinje.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ const PersonlinjeContent: React.FC<PersonlinjeProps> = ({ person, loading }) =>
if (!person) return <Container />

let adressebeskyttelse
let erSkjermetPerson = undefined
if (attributter) {
;[adressebeskyttelse] = attributter?.adressebeskyttelseGradering || []
erSkjermetPerson = attributter.erSkjermetPerson
}
// Midlertidig workaround for å håndtere at endepunk for tilgangsatributter ikke er i prod enda på grunn av
// feilsøking rundt problemer med Micronaut og database connections
Expand Down Expand Up @@ -184,6 +186,14 @@ const PersonlinjeContent: React.FC<PersonlinjeProps> = ({ person, loading }) =>
</Tag>
</>
)}
{erSkjermetPerson && (
<>
<Separator>|</Separator>
<Tag size="small" variant="error">
Skjermet
</Tag>
</>
)}
</Container>
)
}
Expand Down

0 comments on commit 6a61089

Please sign in to comment.