Skip to content

Commit b6df7a7

Browse files
authored
Add missing ElementType and update filterCreation props interface (#553)
Signed-off-by: Ayoub LABIDI <[email protected]>
1 parent da2e493 commit b6df7a7

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/components/filter/filter-creation-dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const formSchema = yup
5454

5555
export interface FilterCreationDialogProps {
5656
open: boolean;
57-
onClose: () => void;
57+
onClose: (e?: unknown, nextSelectedDirectoryId?: string | null) => void;
5858
activeDirectory?: UUID;
5959
elementExists?: ElementExistsType;
6060
language?: string;

src/utils/ElementType.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export enum ElementType {
1313
CASE = 'CASE',
1414
FILTER = 'FILTER',
1515
MODIFICATION = 'MODIFICATION',
16+
PARAMETERS = 'PARAMETERS',
1617
CONTINGENCY_LIST = 'CONTINGENCY_LIST',
1718
VOLTAGE_INIT_PARAMETERS = 'VOLTAGE_INIT_PARAMETERS',
1819
SECURITY_ANALYSIS_PARAMETERS = 'SECURITY_ANALYSIS_PARAMETERS',

src/utils/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export type ElementAttributes = {
4343
parentUuid: null | UUID;
4444
specificMetadata: Record<string, object>;
4545
uploading?: boolean;
46+
hasMetadata?: boolean;
47+
subtype?: string;
4648
};
4749

4850
export type Equipment =

0 commit comments

Comments
 (0)