Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/hooks/useModificationLabelComputer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export const useModificationLabelComputer = () => {
case MODIFICATION_TYPES.CREATE_COUPLING_DEVICE.type:
case MODIFICATION_TYPES.CREATE_VOLTAGE_LEVEL_TOPOLOGY.type:
case MODIFICATION_TYPES.CREATE_VOLTAGE_LEVEL_SECTION.type:
case MODIFICATION_TYPES.MOVE_VOLTAGE_LEVEL_FEEDER_BAYS.type:
return modificationMetadata.voltageLevelId;
default:
return modificationMetadata.equipmentId || '';
Expand Down
1 change: 1 addition & 0 deletions src/translations/en/networkModificationsEn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ export const networkModificationsEn = {
'network_modifications.BALANCES_ADJUSTMENT_MODIFICATION': 'Balances adjustment modification',
'network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY': 'Creating a busbar in voltage level {computedLabel}',
'network_modifications.CREATE_VOLTAGE_LEVEL_SECTION': 'Adding busbar section to voltage level {computedLabel}',
'network_modifications.MOVE_VOLTAGE_LEVEL_FEEDER_BAYS': 'Moving feeder bays in voltage level {computedLabel}',
};
1 change: 1 addition & 0 deletions src/translations/fr/networkModificationsFr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ export const networkModificationsFr = {
'network_modifications.BALANCES_ADJUSTMENT_MODIFICATION': "Modification d'équilibrage bilan",
'network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY': "Ajout d'un jeu de barre dans le poste {computedLabel}",
'network_modifications.CREATE_VOLTAGE_LEVEL_SECTION': 'Ajout de section / tronçon dans le poste {computedLabel}',
'network_modifications.MOVE_VOLTAGE_LEVEL_FEEDER_BAYS': 'Déplacements de départs dans le poste {computedLabel}',
};
4 changes: 4 additions & 0 deletions src/utils/types/modificationType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export enum ModificationType {
BALANCES_ADJUSTMENT = 'BALANCES_ADJUSTMENT_MODIFICATION',
CREATE_VOLTAGE_LEVEL_TOPOLOGY = 'CREATE_VOLTAGE_LEVEL_TOPOLOGY',
CREATE_VOLTAGE_LEVEL_SECTION = 'CREATE_VOLTAGE_LEVEL_SECTION',
MOVE_VOLTAGE_LEVEL_FEEDER_BAYS = 'MOVE_VOLTAGE_LEVEL_FEEDER_BAYS',
}

export const MODIFICATION_TYPES = {
Expand Down Expand Up @@ -212,4 +213,7 @@ export const MODIFICATION_TYPES = {
CREATE_VOLTAGE_LEVEL_SECTION: {
type: ModificationType.CREATE_VOLTAGE_LEVEL_SECTION,
},
MOVE_VOLTAGE_LEVEL_FEEDER_BAYS: {
type: ModificationType.MOVE_VOLTAGE_LEVEL_FEEDER_BAYS,
},
};
Loading