diff --git a/frontend/projects/ui/src/app/apps/ui/pages/system/domains/domain.const.ts b/frontend/projects/ui/src/app/apps/ui/pages/system/domains/domain.const.ts index fade1dedd..0074d9030 100644 --- a/frontend/projects/ui/src/app/apps/ui/pages/system/domains/domain.const.ts +++ b/frontend/projects/ui/src/app/apps/ui/pages/system/domains/domain.const.ts @@ -2,7 +2,7 @@ import { Config } from '@start9labs/start-sdk/lib/config/builder/config' import { Value } from '@start9labs/start-sdk/lib/config/builder/value' import { Variants } from '@start9labs/start-sdk/lib/config/builder/variants' -const ddnsOptions = { +const ddnsOptions = Config.of({ username: Value.text({ name: 'Username', required: { default: null }, @@ -12,18 +12,7 @@ const ddnsOptions = { required: { default: null }, masked: true, }), -} -const ipv4Option = { - ipv4: Value.toggle({ - name: 'Enable IPv4', - default: false, - description: - 'Enable IPv4 if:
  1. Your ISP or router does not support IPv6
  2. You want those who lack IPv6 to reach your site
Warning! IPv4 addresses are closely correlated with geographic areas. If you are not using a reverse proxy, everyone will be able to determine the general location of your server on Earth.', - }), -} - -const options = Config.of(ddnsOptions) -const optionsPlus = Config.of({ ...ddnsOptions, ...ipv4Option }) +}) export const domainSpec = Config.of({ hostname: Value.text({ @@ -39,31 +28,31 @@ export const domainSpec = Config.of({ Variants.of({ start9: { name: 'Start9', - spec: Config.of(ipv4Option), + spec: Config.of({}), }, duckdns: { name: 'Duck DNS', - spec: optionsPlus, + spec: ddnsOptions, }, dyn: { name: 'DynDNS', - spec: optionsPlus, + spec: ddnsOptions, }, easydns: { name: 'easyDNS', - spec: optionsPlus, + spec: ddnsOptions, }, googledomains: { name: 'Google Domains', - spec: optionsPlus, + spec: ddnsOptions, }, namecheap: { name: 'Namecheap (IPv4 only)', - spec: options, + spec: ddnsOptions, }, zoneedit: { name: 'Zoneedit', - spec: optionsPlus, + spec: ddnsOptions, }, }), ), diff --git a/frontend/projects/ui/src/app/apps/ui/pages/system/domains/domains.page.html b/frontend/projects/ui/src/app/apps/ui/pages/system/domains/domains.page.html index 9ce477592..2369d135c 100644 --- a/frontend/projects/ui/src/app/apps/ui/pages/system/domains/domains.page.html +++ b/frontend/projects/ui/src/app/apps/ui/pages/system/domains/domains.page.html @@ -36,7 +36,7 @@ Domain Added - Provider + DDNS Provider In Use @@ -87,7 +87,7 @@ Domain Added - Provider + DDNS Provider In Use @@ -97,7 +97,7 @@ > {{ domain.value }} {{ domain.createdAt| date: 'medium' }} - {{ domain.provider }} + {{ domain.provider.unionSelectKey }}