]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
fix(ui-web): show # prefix on transaction ID only for numeric IDs
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 30 Apr 2026 13:38:04 +0000 (15:38 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 30 Apr 2026 13:38:04 +0000 (15:38 +0200)
OCPP 2.0.x uses UUID strings as transaction IDs where the # prefix is
inappropriate. Only prepend # for OCPP 1.6 numeric transaction IDs.

ui/web/src/skins/modern/components/ConnectorRow.vue

index abfa8b9481781e2fadbf0ecd02fde030290a4257..e7518336a6f1d06ced77d40f14e131bca0f76f5c 100644 (file)
               <th scope="row">
                 Tx
               </th>
-              <td>#{{ connector.transactionId }}</td>
+              <td>
+                {{
+                  typeof connector.transactionId === 'number'
+                    ? `#${connector.transactionId}`
+                    : connector.transactionId
+                }}
+              </td>
             </tr>
             <tr>
               <th scope="row">