Skip to content

Commit

Permalink
fix(service-portal): Delete and view delegation in service portal for…
Browse files Browse the repository at this point in the history
…m me list (#16400)

* fixes wrong validTo date in DelegationViewModal and show delete button for outgoing delegation

* remove log

* chore: nx format:write update dirty files

---------

Co-authored-by: andes-it <[email protected]>
  • Loading branch information
2 people authored and GunnlaugurG committed Oct 16, 2024
1 parent 05f8ca6 commit 98ebf6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const DelegationViewModal = ({
<IdentityCard
label={formatMessage(m.validTo)}
title={
delegation?.validTo && isValid(delegation.validTo)
delegation?.validTo && isValid(new Date(delegation.validTo))
? format(new Date(delegation?.validTo), 'dd.MM.yyyy')
: formatMessage(m.noValidToDate)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,11 @@ export const DelegationsOutgoing = () => {
<AccessCard
key={delegation.id}
delegation={delegation}
onDelete={
!isGeneralMandate
? (delegation) => {
setDelegation(
delegation as AuthCustomDelegationOutgoing,
)
}
: undefined
}
onDelete={(delegation) => {
setDelegation(
delegation as AuthCustomDelegationOutgoing,
)
}}
onEdit={
!isGeneralMandate
? (delegation) =>
Expand Down

0 comments on commit 98ebf6c

Please sign in to comment.