~arx10/procustodibus-app

903c3ad8bb1d6ed41053069932d71e891eb45564 — Justin Ludwig 5 months ago 2c44f02
fix conn wiz default selection for custom dns

when using the internet-to-point wizard type
1 files changed, 2 insertions(+), 11 deletions(-)

M src/components/host/wizard/host-wizard-extras.vue
M src/components/host/wizard/host-wizard-extras.vue => src/components/host/wizard/host-wizard-extras.vue +2 -11
@@ 496,17 496,8 @@ const remoteSearch = computed(() => {
/** Base URL for help links. */
const baseHelpUrl = computed(() => `${env.docUrl}/guide/connection-wizard/`)

watch(localCustomDns, (v) => {
  // check if _other_ side is internet
  if (props.remote.type === 'internet') return
  localInternetDns.value = v ? 'custom' : 'none'
})

watch(remoteCustomDns, (v) => {
  // check if _other_ side is internet
  if (props.local.type === 'internet') return
  remoteInternetDns.value = v ? 'custom' : 'none'
})
watch(localCustomDns, (v) => (localInternetDns.value = v ? 'custom' : 'none'))
watch(remoteCustomDns, (v) => (remoteInternetDns.value = v ? 'custom' : 'none'))

watch(localInternetDns, () => applyInternetDns('local'))
watch(remoteInternetDns, () => applyInternetDns('remote'))