Skip to content

Commit f5f2820

Browse files
display composites as label (#1057)
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
1 parent a1bad06 commit f5f2820

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/hooks/useModificationLabelComputer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ export const useModificationLabelComputer = () => {
115115
return `: ${modificationMetadata.rootNetworkName} / ${modificationMetadata.nodeName} / ${computedDateFormatted}`;
116116
}
117117
return '';
118+
case MODIFICATION_TYPES.COMPOSITE_MODIFICATION.type:
119+
return modificationMetadata.name;
118120
default:
119121
return modificationMetadata.equipmentId || '';
120122
}

src/translations/en/networkModificationsEn.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const networkModificationsEn = {
2929
'network_modifications.GENERATOR_MODIFICATION': 'Modifying generator {computedLabel}',
3030
'network_modifications.LINE_CREATION': 'Creating line {computedLabel}',
3131
'network_modifications.LINE_MODIFICATION': 'Modifying line {computedLabel}',
32+
'network_modifications.COMPOSITE_MODIFICATION': '{computedLabel}',
3233
'network_modifications.TWO_WINDINGS_TRANSFORMER_CREATION': 'Creating 2 windings transformer {computedLabel}',
3334
'network_modifications.TWO_WINDINGS_TRANSFORMER_MODIFICATION': 'Modifying 2 windings transformer {computedLabel}',
3435
'network_modifications.OPERATING_STATUS_MODIFICATION':

src/translations/fr/networkModificationsFr.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const networkModificationsFr = {
2929
'network_modifications.GENERATOR_MODIFICATION': 'Modification du générateur {computedLabel}',
3030
'network_modifications.LINE_CREATION': 'Création de la ligne {computedLabel}',
3131
'network_modifications.LINE_MODIFICATION': 'Modification de la ligne {computedLabel}',
32+
'network_modifications.COMPOSITE_MODIFICATION': '{computedLabel}',
3233
'network_modifications.TWO_WINDINGS_TRANSFORMER_CREATION':
3334
'Création du transformateur à 2 enroulements {computedLabel}',
3435
'network_modifications.TWO_WINDINGS_TRANSFORMER_MODIFICATION':

0 commit comments

Comments
 (0)