Skip to content

Commit ed8a652

Browse files
Nad import filtering (#3035)
* Nad import filtering Signed-off-by: Leclerc Clement <[email protected]>
1 parent 93579fd commit ed8a652

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/diagrams/diagram-adder.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
TreeViewFinderNodeProps,
1919
} from '@gridsuite/commons-ui';
2020
import { TopBarEquipmentSearchDialog } from 'components/top-bar-equipment-seach-dialog/top-bar-equipment-search-dialog';
21+
import { EQUIPMENT_TYPES } from '../utils/equipment-types';
2122

2223
const styles = {
2324
card: (theme: Theme) => ({
@@ -104,6 +105,7 @@ export const DiagramAdder = forwardRef((props: DiagramAdderProps, ref: Ref<HTMLD
104105
open={isLoadSelectorOpen}
105106
onClose={selectElement}
106107
types={[ElementType.DIAGRAM_CONFIG, ElementType.FILTER]}
108+
equipmentTypes={[EQUIPMENT_TYPES.VOLTAGE_LEVEL]}
107109
title={intl.formatMessage({
108110
id: 'AddFromGridexplore',
109111
})}

0 commit comments

Comments
 (0)