From 258666f9962451dda19d0db528bbf07e41838ff2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 28 Feb 2024 18:13:52 +0100 Subject: [PATCH] feat(ui): allow to specificy a UI server configuration name MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ui/web/src/types/ConfigurationType.ts | 1 + ui/web/src/views/ChargingStationsView.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 }} -- 2.34.1