Skip to content

Commit 91e085a

Browse files
authored
add voltage level topology creation (#791)
Signed-off-by: Etienne LESOT <[email protected]>
1 parent e53ce2c commit 91e085a

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

src/hooks/useModificationLabelComputer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export const useModificationLabelComputer = () => {
9797
id: `network_modifications.tabular.${modificationMetadata.tabularCreationType}`,
9898
});
9999
case MODIFICATION_TYPES.CREATE_COUPLING_DEVICE.type:
100+
case MODIFICATION_TYPES.CREATE_VOLTAGE_LEVEL_TOPOLOGY.type:
100101
return modificationMetadata.voltageLevelId;
101102
default:
102103
return modificationMetadata.equipmentId || '';

src/translations/en/networkModificationsEn.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,5 @@ export const networkModificationsEn = {
7373
'network_modifications.VOLTAGE_LEVEL_TOPOLOGY_MODIFICATION': 'Modifying voltage level topology {computedLabel}',
7474
'network_modifications.CREATE_COUPLING_DEVICE': 'Creating a coupling device in voltage level {computedLabel}',
7575
'network_modifications.BALANCES_ADJUSTMENT_MODIFICATION': 'Balances adjustment modification',
76+
'network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY': 'Creating a bus bar in voltage level {computedLabel}',
7677
};

src/translations/fr/networkModificationsFr.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,5 @@ export const networkModificationsFr = {
7777
'Modification de la topologie du poste {computedLabel}',
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",
80+
'network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY': "Ajout d'un jeu de barre dans le poste {computedLabel}",
8081
};

src/utils/types/modificationType.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export enum ModificationType {
5454
VOLTAGE_LEVEL_TOPOLOGY_MODIFICATION = 'VOLTAGE_LEVEL_TOPOLOGY_MODIFICATION',
5555
CREATE_COUPLING_DEVICE = 'CREATE_COUPLING_DEVICE',
5656
BALANCES_ADJUSTMENT = 'BALANCES_ADJUSTMENT_MODIFICATION',
57+
CREATE_VOLTAGE_LEVEL_TOPOLOGY = 'CREATE_VOLTAGE_LEVEL_TOPOLOGY',
5758
}
5859

5960
export const MODIFICATION_TYPES = {
@@ -204,4 +205,7 @@ export const MODIFICATION_TYPES = {
204205
BALANCES_ADJUSTMENT: {
205206
type: ModificationType.BALANCES_ADJUSTMENT,
206207
},
208+
CREATE_VOLTAGE_LEVEL_TOPOLOGY: {
209+
type: ModificationType.CREATE_VOLTAGE_LEVEL_TOPOLOGY,
210+
},
207211
};

0 commit comments

Comments
 (0)