diff --git a/src/components/IssueCreate.vue b/src/components/IssueCreate.vue index 32fb3ee..5798c4b 100644 --- a/src/components/IssueCreate.vue +++ b/src/components/IssueCreate.vue @@ -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 } diff --git a/src/components/IssuesListElement.vue b/src/components/IssuesListElement.vue index 05b8a80..b373c67 100644 --- a/src/components/IssuesListElement.vue +++ b/src/components/IssuesListElement.vue @@ -46,10 +46,9 @@ const onAssigneeChanged = async (assignee: string) => { v-if="[3, 4].includes(issue.priority) && ['OPEN', 'IN_PROGRESS'].includes(issue.status)" icon="mdi-alert-box" color="error" - > + />
{{ issue.title }}
- @@ -61,7 +60,6 @@ const onAssigneeChanged = async (assignee: string) => { :model-value="selected" @update:model-value="emit('toggleSelect', issue.id)" /> - diff --git a/src/components/ProjectMenu.vue b/src/components/ProjectMenu.vue index 3722b84..2eb6817 100644 --- a/src/components/ProjectMenu.vue +++ b/src/components/ProjectMenu.vue @@ -30,11 +30,14 @@ onMounted(async () => {