File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,6 +101,20 @@ export const useModificationLabelComputer = () => {
101101 case MODIFICATION_TYPES . CREATE_VOLTAGE_LEVEL_SECTION . type :
102102 case MODIFICATION_TYPES . MOVE_VOLTAGE_LEVEL_FEEDER_BAYS . type :
103103 return modificationMetadata . voltageLevelId ;
104+ case MODIFICATION_TYPES . VOLTAGE_INIT_MODIFICATION . type :
105+ if (
106+ modificationMetadata . rootNetworkName &&
107+ modificationMetadata . nodeName &&
108+ modificationMetadata . computationDate
109+ ) {
110+ const computedDateFormatted = new Intl . DateTimeFormat ( intl . locale , {
111+ dateStyle : 'long' ,
112+ timeStyle : 'long' ,
113+ hour12 : false ,
114+ } ) . format ( new Date ( modificationMetadata . computationDate ) ) ;
115+ return `: ${ modificationMetadata . rootNetworkName } / ${ modificationMetadata . nodeName } / ${ computedDateFormatted } ` ;
116+ }
117+ return '' ;
104118 default :
105119 return modificationMetadata . equipmentId || '' ;
106120 }
You can’t perform that action at this time.
0 commit comments