Skip to content

Commit 324739e

Browse files
authored
add create voltage level sjb sections modification type (#813)
Signed-off-by: Rehili Ghazwa <[email protected]>
1 parent 6f5fb77 commit 324739e

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/components/inputs/reactHookForm/numbers/SliderInput.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export function SliderInput({
2424
valueLabelDisplay,
2525
valueLabelFormat,
2626
onValueChanged = identity,
27+
...otherProps
2728
}: SliderInputProps) {
2829
const {
2930
field: { onChange, value },
@@ -50,6 +51,7 @@ export function SliderInput({
5051
marks={marks}
5152
valueLabelDisplay={valueLabelDisplay}
5253
valueLabelFormat={valueLabelFormat}
54+
{...otherProps}
5355
/>
5456
);
5557
}

src/translations/en/networkModificationsEn.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ export const networkModificationsEn = {
7474
'network_modifications.CREATE_COUPLING_DEVICE': 'Creating a coupling device in voltage level {computedLabel}',
7575
'network_modifications.BALANCES_ADJUSTMENT_MODIFICATION': 'Balances adjustment modification',
7676
'network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY': 'Creating a bus bar in voltage level {computedLabel}',
77+
'network_modifications.CREATE_VOLTAGE_LEVEL_SECTION': 'Creating voltage level Busbar sections {computedLabel}',
7778
};

src/translations/fr/networkModificationsFr.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,5 @@ export const networkModificationsFr = {
7878
'network_modifications.CREATE_COUPLING_DEVICE': 'Création de couplage / omnibus dans le poste {computedLabel}',
7979
'network_modifications.BALANCES_ADJUSTMENT_MODIFICATION': "Modification d'équilibrage bilan",
8080
'network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY': "Ajout d'un jeu de barre dans le poste {computedLabel}",
81+
'network_modifications.CREATE_VOLTAGE_LEVEL_SECTION': 'Création des Busbar sections dans le poste {computedLabel}',
8182
};

src/utils/types/modificationType.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export enum ModificationType {
5555
CREATE_COUPLING_DEVICE = 'CREATE_COUPLING_DEVICE',
5656
BALANCES_ADJUSTMENT = 'BALANCES_ADJUSTMENT_MODIFICATION',
5757
CREATE_VOLTAGE_LEVEL_TOPOLOGY = 'CREATE_VOLTAGE_LEVEL_TOPOLOGY',
58+
CREATE_VOLTAGE_LEVEL_SECTION = 'CREATE_VOLTAGE_LEVEL_SECTION',
5859
}
5960

6061
export const MODIFICATION_TYPES = {
@@ -208,4 +209,7 @@ export const MODIFICATION_TYPES = {
208209
CREATE_VOLTAGE_LEVEL_TOPOLOGY: {
209210
type: ModificationType.CREATE_VOLTAGE_LEVEL_TOPOLOGY,
210211
},
212+
CREATE_VOLTAGE_LEVEL_SECTION: {
213+
type: ModificationType.CREATE_VOLTAGE_LEVEL_SECTION,
214+
},
211215
};

0 commit comments

Comments
 (0)