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
fix: When a mode like "Content" is selected in share links, it's odd that clone and copy are checked and blue (#4526)
Ivan Starkov1f09b0e5d725
diff --git a/apps/builder/app/shared/share-project/share-project.tsx b/apps/builder/app/shared/share-project/share-project.tsxindex 18bcf19ff7..3054dc7570 100644--- a/apps/builder/app/shared/share-project/share-project.tsx+++ b/apps/builder/app/shared/share-project/share-project.tsx@@ -194,14 +194,17 @@ const Menu = ({ name, hasProPlan, value, onChange, onDelete }: MenuProps) => {}}><Checkbox- disabled={hasProPlan !== true}+ disabled={hasProPlan !== true || value.relation !== "viewers"}checked={value.canClone}onCheckedChange={(canClone) => {onChange({ ...value, canClone: Boolean(canClone) });}}id={ids.canClone}/>- <Label htmlFor={ids.canClone} disabled={hasProPlan !== true}>+ <Label+ htmlFor={ids.canClone}+ disabled={hasProPlan !== true || value.relation !== "viewers"}+ >Can clone</Label></Grid>@@ -214,14 +217,17 @@ const Menu = ({ name, hasProPlan, value, onChange, onDelete }: MenuProps) => {}}><Checkbox- disabled={hasProPlan !== true}+ disabled={hasProPlan !== true || value.relation !== "viewers"}checked={value.canCopy}onCheckedChange={(canCopy) => {onChange({ ...value, canCopy: Boolean(canCopy) });}}id={ids.canCopy}/>- <Label htmlFor={ids.canCopy} disabled={hasProPlan !== true}>+ <Label+ htmlFor={ids.canCopy}+ disabled={hasProPlan !== true || value.relation !== "viewers"}+ >Can copy</Label></Grid>