Edit issue show mixin props (#2656)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-02-17 22:16:36 +07:00
committed by GitHub
parent 07986b476b
commit 598a00c0d6
5 changed files with 47 additions and 4 deletions
@@ -26,6 +26,7 @@
EditBox,
getCurrentLocation,
IconEdit,
IconMixin,
IconMoreH,
Label,
navigate,
@@ -61,6 +62,7 @@
let innerWidth: number
let isEditing = false
let descriptionBox: AttachmentStyledBox
let showAllMixins: boolean
const notificationClient = getResource(notification.function.GetNotificationClient).then((res) => res())
@@ -289,11 +291,23 @@
navigate(loc)
}}
/>
<Button
kind={'transparent'}
shape={'round'}
selected={showAllMixins}
on:click={() => {
showAllMixins = !showAllMixins
}}
>
<svelte:fragment slot="content">
<IconMixin size={'small'} />
</svelte:fragment>
</Button>
</svelte:fragment>
<svelte:fragment slot="custom-attributes">
{#if issue && currentTeam && issueStatuses}
<ControlPanel {issue} {issueStatuses} />
<ControlPanel {issue} {issueStatuses} {showAllMixins} />
{/if}
<div class="divider" />