From: Jérôme Benoit Date: Wed, 28 Feb 2024 17:13:52 +0000 (+0100) Subject: feat(ui): allow to specificy a UI server configuration name X-Git-Tag: v1.2.38~30 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=258666f9962451dda19d0db528bbf07e41838ff2;p=e-mobility-charging-stations-simulator.git feat(ui): allow to specificy a UI server configuration name Signed-off-by: Jérôme Benoit --- diff --git a/ui/web/src/types/ConfigurationType.ts b/ui/web/src/types/ConfigurationType.ts index 51bd2138..18ea267a 100644 --- a/ui/web/src/types/ConfigurationType.ts +++ b/ui/web/src/types/ConfigurationType.ts @@ -5,6 +5,7 @@ export type ConfigurationData = { } export type UIServerConfigurationSection = { + name?: string host: string port: number secure?: boolean diff --git a/ui/web/src/views/ChargingStationsView.vue b/ui/web/src/views/ChargingStationsView.vue index d4848e11..abea2075 100644 --- a/ui/web/src/views/ChargingStationsView.vue +++ b/ui/web/src/views/ChargingStationsView.vue @@ -45,7 +45,7 @@ v-for="uiServerConfiguration in uiServerConfigurations" :value="uiServerConfiguration.index" > - {{ uiServerConfiguration.configuration.host }} + {{ uiServerConfiguration.configuration.name ?? uiServerConfiguration.configuration.host }}