Skip to content

Commit

Permalink
fix: using NsComboBox and fixing initialization issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Dec 20, 2024
1 parent 16e3361 commit 130da17
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@
<div class="title-description mg-bottom-xlg">
{{ $t("settings.general_description") }}
</div>
<cv-combo-box
<NsComboBox
v-model="interfaceField"
:title="$t('settings.interface_label')"
:label="$t('settings.interface_placeholder')"
@@ -73,7 +73,7 @@
"
ref="interfaceField"
>
</cv-combo-box>
</NsComboBox>
<NsButton
kind="primary"
:icon="Save20"
@@ -431,7 +431,9 @@ export default {
const dhcp_server = config["dhcp-server"];
const dns_server = config["dns-server"];

this.interfaceField = config["interface"];
this.$nextTick(() => {
this.interfaceField = config["interface"];
});
this.dhcpEnableField = dhcp_server["enabled"];
this.dhcpStartField = dhcp_server["start"];
this.dhcpEndField = dhcp_server["end"];

0 comments on commit 130da17

Please sign in to comment.