fix
This commit is contained in:
1 parent
4c6f21ef78
commit
1b42c0d916
3 files changed
+12
-10
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
></v-icon>
|
||||
/>
|
||||
<div :class="{ 'text-decoration-line-through': issue.status === 'DONE' }">{{ issue.title }}</div>
|
||||
</div>
|
||||
<!-- <div :class="{ 'text-decoration-line-through': issue.status === 'DONE' }">{{ issue.content }}</div>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -61,7 +60,6 @@ const onAssigneeChanged = async (assignee: string) => {
|
||||
:model-value="selected"
|
||||
@update:model-value="emit('toggleSelect', issue.id)"
|
||||
/>
|
||||
<v-icon icon="mdi-square" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -30,11 +30,14 @@ onMounted(async () => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div v-if="projects.length" class="d-flex align-center ga-2">
|
||||
Project:
|
||||
<div v-if="projects.length" class="d-flex align-center ga-3">
|
||||
<div>Project:</div>
|
||||
<v-menu>
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn border density="comfortable" variant="flat" :text="currentProjectName" v-bind="props" />
|
||||
<v-btn-group variant="flat" density="compact" border>
|
||||
<v-btn rounded="0" :text="currentProjectName" v-bind="props" />
|
||||
<v-btn rounded="0" to="/settings/projects" icon="mdi-cog" />
|
||||
</v-btn-group>
|
||||
</template>
|
||||
|
||||
<v-list
|
||||
|
||||
Reference in new issue
Block a user