Skip to content

Commit 7317a5f

Browse files
authored
Add properties to all equipments. (#405)
Signed-off-by: AAJELLAL <[email protected]>
1 parent 41fd179 commit 7317a5f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/components/dialogs/filter/criteria-based/filter-properties.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ import { useWatch } from 'react-hook-form';
1111
import { FormattedMessage } from 'react-intl';
1212
import { FilterType } from '../../../../utils/elementType';
1313
import {
14+
Battery,
15+
Generator,
1416
Hvdc,
1517
Line,
1618
Load,
19+
ShuntCompensator,
1720
Substation,
21+
TwoWindingTransfo,
22+
VoltageLevel,
1823
} from '../../../../utils/equipment-types';
1924
import { areArrayElementsUnique } from '../../../../utils/functions';
2025
import { EQUIPMENT_TYPE, FILTER_TYPE } from '../../../utils/field-constants';
@@ -154,7 +159,13 @@ function FilterProperties() {
154159
const displayEquipmentProperties = useMemo(() => {
155160
return (
156161
watchEquipmentType === Substation.type ||
157-
watchEquipmentType === Load.type
162+
watchEquipmentType === Load.type ||
163+
watchEquipmentType === Generator.type ||
164+
watchEquipmentType === Line.type ||
165+
watchEquipmentType === TwoWindingTransfo.type ||
166+
watchEquipmentType === Battery.type ||
167+
watchEquipmentType === ShuntCompensator.type ||
168+
watchEquipmentType === VoltageLevel.type
158169
);
159170
}, [watchEquipmentType]);
160171

0 commit comments

Comments
 (0)