Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
feat: Disable domain link button when published site is not ready (#2832)
Oleg Isonen609e74c783bd
diff --git a/apps/builder/app/builder/features/topbar/domains.tsx b/apps/builder/app/builder/features/topbar/domains.tsxindex dac45e6d58..c19836e1c4 100644--- a/apps/builder/app/builder/features/topbar/domains.tsx+++ b/apps/builder/app/builder/features/topbar/domains.tsx@@ -387,6 +387,7 @@ const DomainItem = (props: {<Tooltip content={`Proceed to ${props.projectDomain.domain.domain}`}><IconButtontabIndex={-1}+ disabled={status !== "VERIFIED_ACTIVE"}onClick={(event) => {const url = new URL(`https://${props.projectDomain.domain.domain}`diff --git a/apps/builder/app/builder/features/topbar/publish.tsx b/apps/builder/app/builder/features/topbar/publish.tsxindex ab074e96e7..2e7a2c1874 100644--- a/apps/builder/app/builder/features/topbar/publish.tsx+++ b/apps/builder/app/builder/features/topbar/publish.tsx@@ -139,7 +139,7 @@ const ChangeProjectDomain = ({? getPublishStatusAndText(project.latestBuild): {statusText: "Not published",- status: "PENDING",+ status: "PENDING" as const,};return (@@ -168,10 +168,10 @@ const ChangeProjectDomain = ({)}</Flex></Tooltip>-<Tooltip content={`Proceed to ${publishedUrl.href}`}><IconButtontabIndex={-1}+ disabled={error !== undefined || status !== "PUBLISHED"}onClick={(event) => {window.open(publishedUrl.href, "_blank");event.preventDefault();