[UBER-350] Use drafts for creating issues from the list header (#3331)

Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@icloud.com>
This commit is contained in:
Sergei Ogorelkov 2023-06-02 13:46:33 +04:00 committed by GitHub
parent 792c35bcc1
commit 227b29d7bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,7 @@
const createItemDialog = CreateIssue const createItemDialog = CreateIssue
const createItemLabel = tracker.string.AddIssueTooltip const createItemLabel = tracker.string.AddIssueTooltip
const createItemDialogProps = { shouldSaveDraft: true }
</script> </script>
{#if viewlet?.$lookup?.descriptor?.component} {#if viewlet?.$lookup?.descriptor?.component}
@ -45,6 +46,7 @@
config: preference?.config ?? viewlet.config, config: preference?.config ?? viewlet.config,
options: viewlet.options, options: viewlet.options,
createItemDialog, createItemDialog,
createItemDialogProps,
createItemLabel, createItemLabel,
viewlet, viewlet,
viewOptions, viewOptions,

View File

@ -16,6 +16,7 @@
export let viewlet: Viewlet export let viewlet: Viewlet
export let config: (string | BuildModelKey)[] export let config: (string | BuildModelKey)[]
export let createItemDialog: AnyComponent | undefined export let createItemDialog: AnyComponent | undefined
export let createItemDialogProps: Record<string, any> | undefined = undefined
export let createItemLabel: IntlString | undefined export let createItemLabel: IntlString | undefined
export let viewOptions: ViewOptions export let viewOptions: ViewOptions
export let props: Record<string, any> = {} export let props: Record<string, any> = {}
@ -57,6 +58,7 @@
{config} {config}
{options} {options}
{createItemDialog} {createItemDialog}
{createItemDialogProps}
{createItemLabel} {createItemLabel}
{viewOptions} {viewOptions}
{props} {props}