Skip to content

Commit

Permalink
Type column to AppealDocs table, remove Location column
Browse files Browse the repository at this point in the history
  • Loading branch information
szabozoltan69 authored and frozenhelium committed Jan 29, 2025
1 parent 6a4957f commit 9a50443
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/modern-rings-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"go-web-app": patch
---

Due to go-web-app/issues/1640 the appealdoc type is needed in tables
2 changes: 1 addition & 1 deletion app/src/views/EmergencyReportAndDocument/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"addAReportLink": "Add a Report",
"appealDocuments": "Appeal Documents ({count})",
"appealDocumentDate": "Date",
"appealDocumentLocation": "Location",
"appealDocumentType": "Type",
"appealDocumentCode": "Code",
"appealDocumentDescription": "Description",
"appealDocumentLink": "Name",
Expand Down
8 changes: 4 additions & 4 deletions app/src/views/EmergencyReportAndDocument/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ export function Component() {
},
),
createStringColumn<AppealDocumentType, number>(
'iso',
strings.appealDocumentLocation,
(item) => item.iso,
'type',
strings.appealDocumentType,
(item) => item.type,
),
createStringColumn<AppealDocumentType, number>(
'code',
Expand All @@ -211,7 +211,7 @@ export function Component() {
]),
[
strings.appealDocumentDate,
strings.appealDocumentLocation,
strings.appealDocumentType,
strings.appealDocumentCode,
strings.appealDocumentDescription,
strings.appealDocumentLink,
Expand Down
16 changes: 16 additions & 0 deletions translationMigrations/000010-1738067954473.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parent": "000009-1737021478924.json",
"actions": [
{
"action": "add",
"key": "appealDocumentType",
"namespace": "emergencyReportAndDocument",
"value": "Type"
},
{
"action": "remove",
"key": "appealDocumentLocation",
"namespace": "emergencyReportAndDocument"
}
]
}

0 comments on commit 9a50443

Please sign in to comment.