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
}
+1 -3
View File
@@ -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>
+6 -3
View File
@@ -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