Skip to content

Commit cdabdce

Browse files
committed
fix translation ff vclType
1 parent 661994b commit cdabdce

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

src/components/filter/CardFilterWhere.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ const CardFilterWhere = observer(() => {
6060
onChange={updateRoadType}
6161
/>
6262
<MySelect
63-
style={{ display: 'flex-end', alignItems: 'center' }}
6463
label={'city_size'}
6564
data={cityPopSizeRange.arrTypes}
6665
valProp="val"
6766
contentProp="text"
6867
onChange={(event: React.ChangeEvent<HTMLSelectElement>) => setCityPopSizeRange(event.target.value)}
68+
cssClass="stacked"
6969
/>
7070
<GroupCheckbox
7171
formName="filterForm"

src/stores/filter/ColumnFilterCheckBoxList.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -214,24 +214,24 @@ export const initInjTypes = () => {
214214

215215
export const initVehicleTypes = () => {
216216
const col: IColumnFilter = new ColumnFilter('VehicleType', 'vcl', 0);
217-
col.arrTypes.push(new FilterChecker('all', true, []));
218-
col.arrTypes.push(new FilterChecker('pedestrian', false, [0]));
219-
col.arrTypes.push(new FilterChecker('mobilityscooter', false, [22]));
220-
col.arrTypes.push(new FilterChecker('bicycle', false, [15]));
221-
col.arrTypes.push(new FilterChecker('e-scooter', false, [34]));
222-
col.arrTypes.push(new FilterChecker('e-bike', false, [36]));
223-
col.arrTypes.push(new FilterChecker('motorcycle', false,
217+
col.arrTypes.push(new FilterChecker('vclType.all', true, []));
218+
col.arrTypes.push(new FilterChecker('vclType.pedestrian', false, [0]));
219+
col.arrTypes.push(new FilterChecker('vclType.mobilityscooter', false, [22]));
220+
col.arrTypes.push(new FilterChecker('vclType.bicycle', false, [15]));
221+
col.arrTypes.push(new FilterChecker('vclType.e-scooter', false, [34]));
222+
col.arrTypes.push(new FilterChecker('vclType.e-bike', false, [36]));
223+
col.arrTypes.push(new FilterChecker('vclType.motorcycle', false,
224224
[8, 9, 10, 19]));
225-
col.arrTypes.push(new FilterChecker('car', false, [1]));
226-
col.arrTypes.push(new FilterChecker('taxi', false, [12]));
227-
col.arrTypes.push(new FilterChecker('tranzit', false, [2]));
228-
col.arrTypes.push(new FilterChecker('tender', false, [3]));
229-
col.arrTypes.push(new FilterChecker('bus', false, [11, 18]));
230-
col.arrTypes.push(new FilterChecker('truck', false,
225+
col.arrTypes.push(new FilterChecker('vclType.car', false, [1]));
226+
col.arrTypes.push(new FilterChecker('vclType.taxi', false, [12]));
227+
col.arrTypes.push(new FilterChecker('vclType.tranzit', false, [2]));
228+
col.arrTypes.push(new FilterChecker('vclType.tender', false, [3]));
229+
col.arrTypes.push(new FilterChecker('vclType.bus', false, [11, 18]));
230+
col.arrTypes.push(new FilterChecker('vclType.truck', false,
231231
[4, 37, 5, 6, 7]));
232-
col.arrTypes.push(new FilterChecker('tractor', false, [14]));
233-
col.arrTypes.push(new FilterChecker('train', false, [16]));
234-
col.arrTypes.push(new FilterChecker('other', false, [17]));
232+
col.arrTypes.push(new FilterChecker('vclType.tractor', false, [14]));
233+
col.arrTypes.push(new FilterChecker('vclType.train', false, [16]));
234+
col.arrTypes.push(new FilterChecker('vclType.other', false, [17]));
235235
return col;
236236
};
237237

0 commit comments

Comments
 (0)