From 98915f001cb3328155100a289fc0f2a7b2ededd0 Mon Sep 17 00:00:00 2001 From: Antonio <36625268+tonyco97@users.noreply.github.com> Date: Fri, 27 Sep 2024 15:10:17 +0200 Subject: [PATCH] settings. Fixed wrong warning message on page load (#43) --- ui/src/views/Settings.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ui/src/views/Settings.vue b/ui/src/views/Settings.vue index fdacb0d..140f29a 100644 --- a/ui/src/views/Settings.vue +++ b/ui/src/views/Settings.vue @@ -248,9 +248,16 @@ export default { this.loading.pathLoading = false; }); - if (this.interfaces !== this.address) { - this.warningVisible = true; - } + setInterval(() => { + if ( + this.address !== "" && + this.address !== null && + this.interfaces !== this.address + ) { + this.warningVisible = true; + } + }, 1000); + // focus first configuration field this.focusElement("address"); },