mirror of
https://github.com/fosrl/pangolin.git
synced 2026-04-10 11:56:36 +00:00
simplify wildcard domain on non pangolin-dns
This commit is contained in:
@@ -10,6 +10,7 @@ import { authCookieHeader } from "@app/lib/api/cookies";
|
|||||||
import { GetDNSRecordsResponse } from "@server/routers/domain";
|
import { GetDNSRecordsResponse } from "@server/routers/domain";
|
||||||
import DNSRecordsTable from "@app/components/DNSRecordTable";
|
import DNSRecordsTable from "@app/components/DNSRecordTable";
|
||||||
import DomainCertForm from "@app/components/DomainCertForm";
|
import DomainCertForm from "@app/components/DomainCertForm";
|
||||||
|
import { build } from "@server/build";
|
||||||
|
|
||||||
interface DomainSettingsPageProps {
|
interface DomainSettingsPageProps {
|
||||||
params: Promise<{ domainId: string; orgId: string }>;
|
params: Promise<{ domainId: string; orgId: string }>;
|
||||||
@@ -65,12 +66,14 @@ export default async function DomainSettingsPage({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-6">
|
<div className="space-y-6">
|
||||||
<DomainInfoCard
|
{build != "oss" && env.flags.usePangolinDns ? (
|
||||||
failed={domain.failed}
|
<DomainInfoCard
|
||||||
verified={domain.verified}
|
failed={domain.failed}
|
||||||
type={domain.type}
|
verified={domain.verified}
|
||||||
errorMessage={domain.errorMessage}
|
type={domain.type}
|
||||||
/>
|
errorMessage={domain.errorMessage}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
|
|
||||||
<DNSRecordsTable records={dnsRecords} type={domain.type} />
|
<DNSRecordsTable records={dnsRecords} type={domain.type} />
|
||||||
|
|
||||||
|
|||||||
@@ -239,21 +239,24 @@ export default function CreateDomainForm({
|
|||||||
className="space-y-4"
|
className="space-y-4"
|
||||||
id="create-domain-form"
|
id="create-domain-form"
|
||||||
>
|
>
|
||||||
<FormField
|
{build != "oss" && env.flags.usePangolinDns ? (
|
||||||
control={form.control}
|
<FormField
|
||||||
name="type"
|
control={form.control}
|
||||||
render={({ field }) => (
|
name="type"
|
||||||
<FormItem>
|
render={({ field }) => (
|
||||||
<StrategySelect
|
<FormItem>
|
||||||
options={domainOptions}
|
<StrategySelect
|
||||||
defaultValue={field.value}
|
options={domainOptions}
|
||||||
onChange={field.onChange}
|
defaultValue={field.value}
|
||||||
cols={1}
|
onChange={field.onChange}
|
||||||
/>
|
cols={1}
|
||||||
<FormMessage />
|
/>
|
||||||
</FormItem>
|
<FormMessage />
|
||||||
)}
|
</FormItem>
|
||||||
/>
|
)}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
|
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
name="baseDomain"
|
name="baseDomain"
|
||||||
|
|||||||
Reference in New Issue
Block a user