[UBER-151] Fix adding sub-issues in the "New template" dialog (#3206)

Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@icloud.com>
This commit is contained in:
Sergei Ogorelkov 2023-05-17 18:51:53 +04:00 committed by GitHub
parent 123828d078
commit 36245f8f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View File

@ -158,6 +158,7 @@
milestone={object.milestone}
project={_space}
maxHeight="limited"
on:create-issue={({ detail }) => (object.children = [...object.children, detail])}
/>
<svelte:fragment slot="pool">
<PriorityEditor

View File

@ -129,8 +129,8 @@
{/key}
</div>
</div>
<div class="mt-4 flex-between">
<div class="buttons-group xsmall-gap">
<div class="mt-4 flex-between items-end">
<div class="inline-flex flex-wrap xsmall-gap">
<PriorityEditor
value={newIssue}
shouldShowLabel
@ -145,6 +145,7 @@
value={newIssue}
size="small"
kind="no-border"
width="auto"
on:change={({ detail }) => (newIssue.assignee = detail)}
/>
{/key}
@ -172,7 +173,7 @@
}}
/>
</div>
<div class="buttons-group small-gap">
<div class="ml-2 buttons-group small-gap">
<Button label={presentation.string.Cancel} size="small" kind="transparent" on:click={close} />
<Button
disabled={!canSave}
@ -184,3 +185,13 @@
</div>
</div>
</div>
<style lang="scss">
.xsmall-gap {
gap: 0.375rem;
}
.items-end {
align-items: flex-end;
}
</style>