mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-18 19:30:27 +08:00
Hide issue/patch edit buttons in non-experimental mode
This commit is contained in:
@@ -504,7 +504,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
<div style="display: flex; gap: 0.5rem;">
|
||||
{#if session && role.isDelegateOrAuthor(session.publicKey, delegates, issue.author.id) && issueState === "read"}
|
||||
{#if $experimental && session && role.isDelegateOrAuthor(session.publicKey, delegates, issue.author.id) && issueState === "read"}
|
||||
<div class="global-hide-on-mobile-down">
|
||||
<Button
|
||||
variant="outline"
|
||||
@@ -517,7 +517,7 @@
|
||||
{/if}
|
||||
{#if issueState === "read"}
|
||||
<Share {baseUrl} />
|
||||
{#if session && role.isDelegateOrAuthor(session.publicKey, delegates, issue.author.id)}
|
||||
{#if $experimental && session && role.isDelegateOrAuthor(session.publicKey, delegates, issue.author.id)}
|
||||
<div class="global-hide-on-small-desktop-down">
|
||||
<CobStateButton
|
||||
items={items.filter(
|
||||
|
||||
@@ -728,7 +728,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{#if session && role.isDelegateOrAuthor(session.publicKey, delegates, patch.author.id) && patchState === "read"}
|
||||
{#if $experimental && session && role.isDelegateOrAuthor(session.publicKey, delegates, patch.author.id) && patchState === "read"}
|
||||
<div class="global-hide-on-mobile-down">
|
||||
<Button
|
||||
variant="outline"
|
||||
@@ -741,7 +741,7 @@
|
||||
{/if}
|
||||
{#if patchState === "read"}
|
||||
<Share {baseUrl} />
|
||||
{#if session && role.isDelegateOrAuthor(session.publicKey, delegates, patch.author.id)}
|
||||
{#if $experimental && session && role.isDelegateOrAuthor(session.publicKey, delegates, patch.author.id)}
|
||||
<div class="global-hide-on-small-desktop-down">
|
||||
<CobStateButton
|
||||
items={items.filter(
|
||||
|
||||
Reference in New Issue
Block a user