Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TSK-1474] Fix expanded creation of sub issue #3181

Merged
merged 2 commits into from
May 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import tracker from '../../../plugin'
import CreateSubIssue from './CreateSubIssue.svelte'
import SubIssueList from './SubIssueList.svelte'
import { afterUpdate } from 'svelte'

export let issue: Issue
export let projects: Map<Ref<Project>, Project>
Expand Down Expand Up @@ -72,6 +73,14 @@
$: viewOptions = viewlet !== undefined ? getViewOptions(viewlet, $viewOptionStore) : undefined

export let focusIndex = -1

let lastIssueId: Ref<Issue>
afterUpdate(() => {
if (lastIssueId !== issue._id) {
lastIssueId = issue._id
isCreating = $draftsStore[`${issue._id}_subIssue`] !== undefined
haiodo marked this conversation as resolved.
Show resolved Hide resolved
}
})
</script>

<div class="flex-between">
Expand Down