feat(ui): allow to specificy a UI server configuration name
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 28 Feb 2024 17:13:52 +0000 (18:13 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 28 Feb 2024 17:13:52 +0000 (18:13 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/types/ConfigurationType.ts
ui/web/src/views/ChargingStationsView.vue

index 51bd21388b82b6c4260c5d1e2931f8611f45bac2..18ea267a5e16052c1e58ff4afd9ee5d5c826ba46 100644 (file)
@@ -5,6 +5,7 @@ export type ConfigurationData = {
 }
 
 export type UIServerConfigurationSection = {
+  name?: string
   host: string
   port: number
   secure?: boolean
index d4848e11e8a631186424aec088f0a72624e9035e..abea2075cc1207114d0a0d1174f5b1453058a709 100644 (file)
@@ -45,7 +45,7 @@
           v-for="uiServerConfiguration in uiServerConfigurations"
           :value="uiServerConfiguration.index"
         >
-          {{ uiServerConfiguration.configuration.host }}
+          {{ uiServerConfiguration.configuration.name ?? uiServerConfiguration.configuration.host }}
         </option>
       </select>
     </Container>