summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2021-12-01 17:58:47 +0300
committerKonstantin Aladyshev <aladyshev22@gmail.com>2021-12-01 17:58:47 +0300
commitb98a133e39e15be179779ae9b7745bbc093b17a4 (patch)
treea15e9da7aa4f103fcb035befb14a3e9299da15de
parent5e5b48b0a452b5b121b9221019cf7616545b188b (diff)
downloadwebui-vue-b98a133e39e15be179779ae9b7745bbc093b17a4.tar.xz
Fix DHCPv4 display
Currently UI DHCPv4 element shows list of DHCP address dictionaries. Instead of showing the whole object as it is, display only the address of the first element in the list. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: Ifc1d8a2400f5eafba435355c3884c35392f73d74
-rw-r--r--src/views/Overview/OverviewNetwork.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/views/Overview/OverviewNetwork.vue b/src/views/Overview/OverviewNetwork.vue
index 9c66773c..b81e5c73 100644
--- a/src/views/Overview/OverviewNetwork.vue
+++ b/src/views/Overview/OverviewNetwork.vue
@@ -35,7 +35,9 @@
<dd>
{{
dataFormatter(
- network.dhcpAddress.length !== 0 ? network.dhcpAddress : null
+ network.dhcpAddress.length !== 0
+ ? network.dhcpAddress[0].Address
+ : null
)
}}
</dd>