Skip to content

Commit

Permalink
fix(j-s): Defender Case Info (#16024)
Browse files Browse the repository at this point in the history
  • Loading branch information
gudjong authored Sep 17, 2024
1 parent e77487b commit e8480d9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ export const include: Includeable[] = [
required: false,
where: { stringType: { [Op.in]: stringTypes } },
},
{ model: Case, as: 'mergeCase', attributes },
]

export const order: OrderItem[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,9 @@ query LimitedAccessCase($input: CaseQueryInput!) {
created
eventType
}
mergeCase {
id
courtCaseNumber
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export const strings = defineMessages({
description: 'Notað sem merki þegar mál í stöðu "Dómtekið" í málalista',
},
completed: {
id: 'judicial.system.core:tag_case_state.completed',
id: 'judicial.system.core:tag_case_state.completed_v2',
defaultMessage:
'{indictmentRulingDecision, select, RULING {Dómur} FINE {Viðurlagaákvörðun} DISMISSAL {Frávísun} CANCELLATION {Niðurfelling} other {Lokið}}',
'{indictmentRulingDecision, select, RULING {Dómur} FINE {Viðurlagaákvörðun} DISMISSAL {Frávísun} CANCELLATION {Niðurfelling} MERGE {Sameinað} other {Lokið}}',
description: 'Notað sem merki þegar mál í stöðu "Dómþulur" í málalista',
},
recalled: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
UserContext,
} from '@island.is/judicial-system-web/src/components'
import {
CaseIndictmentRulingDecision,
CaseState,
IndictmentDecision,
UserRole,
Expand Down Expand Up @@ -110,8 +111,10 @@ const IndictmentOverview: FC = () => {
{caseIsClosed ? (
<InfoCardClosedIndictment
displayAppealExpirationInfo={
user?.role === UserRole.DEFENDER ||
workingCase.indictmentReviewer?.id === user?.id
workingCase.indictmentRulingDecision ===
CaseIndictmentRulingDecision.RULING &&
(user?.role === UserRole.DEFENDER ||
workingCase.indictmentReviewer?.id === user?.id)
}
/>
) : (
Expand Down

0 comments on commit e8480d9

Please sign in to comment.