File tree 3 files changed +16
-3
lines changed
lib-customizations/defaults/employee/i18n
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
- // SPDX-FileCopyrightText: 2017-2022 City of Espoo
1
+ // SPDX-FileCopyrightText: 2017-2025 City of Espoo
2
2
//
3
3
// SPDX-License-Identifier: LGPL-2.1-or-later
4
4
@@ -117,6 +117,7 @@ export default React.memo(function Units() {
117
117
] . join ( ', ' )
118
118
: unit . visitingAddress . streetAddress }
119
119
</ Td >
120
+ < Td > { unit . visitingAddress . postOffice } </ Td >
120
121
< Td >
121
122
{ unit . type . map ( ( type ) => i18n . common . types [ type ] ) . join ( ', ' ) }
122
123
</ Td >
@@ -215,10 +216,16 @@ export default React.memo(function Units() {
215
216
</ SortableTh >
216
217
< SortableTh
217
218
sorted = { sortColumn === 'address' ? sortDirection : undefined }
218
- onClick = { ( ) => sortBy ( 'address ' ) }
219
+ onClick = { ( ) => sortBy ( 'visitingAddress.streetAddress ' ) }
219
220
>
220
221
{ i18n . units . address }
221
222
</ SortableTh >
223
+ < SortableTh
224
+ sorted = { sortColumn === 'city' ? sortDirection : undefined }
225
+ onClick = { ( ) => sortBy ( 'visitingAddress.postOffice' ) }
226
+ >
227
+ { i18n . units . city }
228
+ </ SortableTh >
222
229
< SortableTh
223
230
sorted = { sortColumn === 'type' ? sortDirection : undefined }
224
231
onClick = { ( ) => sortBy ( 'type' ) }
Original file line number Diff line number Diff line change @@ -44,7 +44,12 @@ const defaultState: UnitsState = {
44
44
45
45
export const UnitsContext = createContext < UnitsState > ( defaultState )
46
46
47
- export type SearchColumn = 'name' | 'area.name' | 'address' | 'type'
47
+ export type SearchColumn =
48
+ | 'name'
49
+ | 'area.name'
50
+ | 'visitingAddress.streetAddress'
51
+ | 'visitingAddress.postOffice'
52
+ | 'type'
48
53
49
54
export const UnitsContextProvider = React . memo ( function UnitsContextProvider ( {
50
55
children
Original file line number Diff line number Diff line change @@ -2169,6 +2169,7 @@ export const fi = {
2169
2169
name : 'Nimi' ,
2170
2170
area : 'Alue' ,
2171
2171
address : 'Osoite' ,
2172
+ city : 'Kunta' ,
2172
2173
type : 'Tyyppi' ,
2173
2174
findByName : 'Etsi yksikön nimellä' ,
2174
2175
selectProviderTypes : 'Valitse järjestämismuoto' ,
You can’t perform that action at this time.
0 commit comments