@@ -162,36 +205,58 @@ function PubDomainRow(props: {
- ) : props.basePath === props.domain ? (
-
-
- current default domain
-
-
-
- ) : (
+ ) : props.basePath === props.domain ? null : (
@@ -221,12 +286,16 @@ function UnassignedDomainRow(props: {
);
if (domain) {
domain.custom_domain_routes = [];
+ let pub = draft.publications?.find(
+ (p) => p.uri === props.publication_uri,
+ );
domain.publication_domains = [
{
publication: props.publication_uri,
domain: props.domainData.domain,
identity: "",
created_at: new Date().toISOString(),
+ publications: pub ? { name: pub.name } : null,
},
];
}
@@ -270,7 +339,7 @@ function UnassignedDomainRow(props: {
}
}}
>
- {loading ?
: "assign"}
+ {loading ?
: "assign"}
)}
diff --git a/components/Icons/GoToArrow.tsx b/components/Icons/GoToArrow.tsx
index 55bf39ce..d5f6395d 100644
--- a/components/Icons/GoToArrow.tsx
+++ b/components/Icons/GoToArrow.tsx
@@ -8,6 +8,7 @@ export const GoToArrow = (props: Props) => {
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
+ {...props}
>