This commit is contained in:
vadim committed 2026-09-27 20:09:38 +03:00
1 parent 4c6f21ef78
commit 1b42c0d916
3 files changed
+12 -10

No files matched your search

+5 -4
View File
@@ -10,18 +10,19 @@ const emit = defineEmits<{ created: [issue: Issue] }>()
const showForm = ref(false)
const newIssue = reactive({
key: 'type',
key: '',
title: '',
})
const onCreate = async () => {
const projectId = projectStore.current?.id
if (!projectId) return
const project = projectStore.current
if (!project) return
const created = await issueStore.create({ ...newIssue, projectId })
const created = await issueStore.create({ ...newIssue, projectId: project.id, key: project.key })
if (!created) return
emit('created', created)
newIssue.key = ''
newIssue.title = ''
showForm.value = false
}