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 showForm = ref(false)
|
||||||
const newIssue = reactive({
|
const newIssue = reactive({
|
||||||
key: 'type',
|
key: '',
|
||||||
title: '',
|
title: '',
|
||||||
})
|
})
|
||||||
|
|
||||||
const onCreate = async () => {
|
const onCreate = async () => {
|
||||||
const projectId = projectStore.current?.id
|
const project = projectStore.current
|
||||||
if (!projectId) return
|
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
|
if (!created) return
|
||||||
|
|
||||||
emit('created', created)
|
emit('created', created)
|
||||||
|
newIssue.key = ''
|
||||||
newIssue.title = ''
|
newIssue.title = ''
|
||||||
showForm.value = false
|
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)"
|
v-if="[3, 4].includes(issue.priority) && ['OPEN', 'IN_PROGRESS'].includes(issue.status)"
|
||||||
icon="mdi-alert-box"
|
icon="mdi-alert-box"
|
||||||
color="error"
|
color="error"
|
||||||
></v-icon>
|
/>
|
||||||
<div :class="{ 'text-decoration-line-through': issue.status === 'DONE' }">{{ issue.title }}</div>
|
<div :class="{ 'text-decoration-line-through': issue.status === 'DONE' }">{{ issue.title }}</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div :class="{ 'text-decoration-line-through': issue.status === 'DONE' }">{{ issue.content }}</div>-->
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -61,7 +60,6 @@ const onAssigneeChanged = async (assignee: string) => {
|
|||||||
:model-value="selected"
|
:model-value="selected"
|
||||||
@update:model-value="emit('toggleSelect', issue.id)"
|
@update:model-value="emit('toggleSelect', issue.id)"
|
||||||
/>
|
/>
|
||||||
<v-icon icon="mdi-square" />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -30,11 +30,14 @@ onMounted(async () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div v-if="projects.length" class="d-flex align-center ga-2">
|
<div v-if="projects.length" class="d-flex align-center ga-3">
|
||||||
Project:
|
<div>Project:</div>
|
||||||
<v-menu>
|
<v-menu>
|
||||||
<template v-slot:activator="{ props }">
|
<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>
|
</template>
|
||||||
|
|
||||||
<v-list
|
<v-list
|
||||||
|
|||||||
Reference in new issue
Block a user