Skip to content

Commit

Permalink
settings. Fixed wrong warning message on page load (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyco97 authored Sep 27, 2024
1 parent bd66170 commit 98915f0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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");
},
Expand Down

0 comments on commit 98915f0

Please sign in to comment.