feat: collapse the fork members setting and show its state in a badge (#11220)

* feat: collapse the fork members setting and show its state in a badge

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix: show the fork members badge next to the title, only when on, like other section badges

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
hugocasa
2026-09-25 17:12:51 +02:00
committed by GitHub
co-authored by Claude Opus 5
parent 8caf414301
commit 3bd89e92d8
@@ -1091,7 +1091,13 @@
label="Fork members"
description="Choose who a new fork of this workspace starts with, besides the person who creates it."
wrapperClass="pb-12"
collapsable
>
{#snippet badge()}
{#if addAdminsAndDevelopersToForks}
<Badge color="gray" wrapperClass="ml-2 mr-auto">Admins and developers</Badge>
{/if}
{/snippet}
<Toggle
bind:checked={addAdminsAndDevelopersToForks}
on:change={(e) => updateAddAdminsAndDevelopersToForks(e.detail)}