mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-08 21:27:45 +03:00
[TSK-1474] Fix expanded creation of sub issue (#3181)
Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
This commit is contained in:
parent
3d4e19270b
commit
d137e5548c
@ -39,6 +39,7 @@
|
|||||||
import tracker from '../../../plugin'
|
import tracker from '../../../plugin'
|
||||||
import CreateSubIssue from './CreateSubIssue.svelte'
|
import CreateSubIssue from './CreateSubIssue.svelte'
|
||||||
import SubIssueList from './SubIssueList.svelte'
|
import SubIssueList from './SubIssueList.svelte'
|
||||||
|
import { afterUpdate } from 'svelte'
|
||||||
|
|
||||||
export let issue: Issue
|
export let issue: Issue
|
||||||
export let projects: Map<Ref<Project>, Project>
|
export let projects: Map<Ref<Project>, Project>
|
||||||
@ -72,6 +73,14 @@
|
|||||||
$: viewOptions = viewlet !== undefined ? getViewOptions(viewlet, $viewOptionStore) : undefined
|
$: viewOptions = viewlet !== undefined ? getViewOptions(viewlet, $viewOptionStore) : undefined
|
||||||
|
|
||||||
export let focusIndex = -1
|
export let focusIndex = -1
|
||||||
|
|
||||||
|
let lastIssueId: Ref<Issue>
|
||||||
|
afterUpdate(() => {
|
||||||
|
if (lastIssueId !== issue._id) {
|
||||||
|
lastIssueId = issue._id
|
||||||
|
isCreating = $draftsStore[`${issue._id}_subIssue`] !== undefined
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex-between">
|
<div class="flex-between">
|
||||||
|
Loading…
Reference in New Issue
Block a user