mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-20 22:00:43 +08:00
Hide actions while editing issue or patch
This commit is contained in:
@@ -508,15 +508,17 @@
|
||||
Edit
|
||||
</Button>
|
||||
{/if}
|
||||
<Share {preferredSeeds} {publicExplorer} {baseUrl} />
|
||||
{#if session && role.isDelegateOrAuthor(session.publicKey, project.delegates, issue.author.id)}
|
||||
<CobStateButton
|
||||
items={items.filter(
|
||||
([, state]) => !isEqual(state, issue.state),
|
||||
)}
|
||||
{selectedItem}
|
||||
state={issue.state}
|
||||
save={partial(saveStatus, session.id)} />
|
||||
{#if issueState === "read"}
|
||||
<Share {preferredSeeds} {publicExplorer} {baseUrl} />
|
||||
{#if session && role.isDelegateOrAuthor(session.publicKey, project.delegates, issue.author.id)}
|
||||
<CobStateButton
|
||||
items={items.filter(
|
||||
([, state]) => !isEqual(state, issue.state),
|
||||
)}
|
||||
{selectedItem}
|
||||
state={issue.state}
|
||||
save={partial(saveStatus, session.id)} />
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</svelte:fragment>
|
||||
|
||||
@@ -743,13 +743,17 @@
|
||||
Edit
|
||||
</Button>
|
||||
{/if}
|
||||
<Share {preferredSeeds} {publicExplorer} {baseUrl} />
|
||||
{#if session && role.isDelegateOrAuthor(session.publicKey, project.delegates, patch.author.id)}
|
||||
<CobStateButton
|
||||
items={items.filter(([, state]) => !isEqual(state, patch.state))}
|
||||
{selectedItem}
|
||||
state={patch.state}
|
||||
save={partial(saveStatus, session.id)} />
|
||||
{#if patchState === "read"}
|
||||
<Share {preferredSeeds} {publicExplorer} {baseUrl} />
|
||||
{#if session && role.isDelegateOrAuthor(session.publicKey, project.delegates, patch.author.id)}
|
||||
<CobStateButton
|
||||
items={items.filter(
|
||||
([, state]) => !isEqual(state, patch.state),
|
||||
)}
|
||||
{selectedItem}
|
||||
state={patch.state}
|
||||
save={partial(saveStatus, session.id)} />
|
||||
{/if}
|
||||
{/if}
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="state">
|
||||
|
||||
Reference in New Issue
Block a user