small fixes
This commit is contained in:
1 parent
6af9993c4f
commit
cc490f8d4a
2 files changed
+15
-4
No files matched your search
@@ -28,6 +28,10 @@ const onCreate = async () => {
|
|||||||
newIssue.title = ''
|
newIssue.title = ''
|
||||||
showForm.value = false
|
showForm.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const onCancel = () => {
|
||||||
|
showForm.value = false
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -54,15 +58,16 @@ const onCreate = async () => {
|
|||||||
placeholder="Describe your issue"
|
placeholder="Describe your issue"
|
||||||
autofocus
|
autofocus
|
||||||
@keyup.enter="onCreate"
|
@keyup.enter="onCreate"
|
||||||
|
@keyup.esc="onCancel"
|
||||||
/>
|
/>
|
||||||
<v-btn density="compact" variant="tonal" text="Create" @click="onCreate" />
|
<v-btn density="compact" variant="tonal" text="Create" @click="onCreate" />
|
||||||
<v-btn density="compact" variant="text" icon="mdi-close" @click="showForm = false" />
|
<v-btn density="compact" variant="text" icon="mdi-close" @click="onCancel" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item v-else-if="showForm && !current">
|
<v-list-item v-else-if="showForm && !current">
|
||||||
<div>
|
<div>
|
||||||
<v-alert closable density="compact" @click:close="showForm = false">
|
<v-alert closable density="compact" @click:close="onCancel">
|
||||||
Select or create project
|
Select or create project
|
||||||
<router-link class="text-decoration-none text-link text-capitalize" to="/settings/projects">HERE</router-link>.
|
<router-link class="text-decoration-none text-link text-capitalize" to="/settings/projects">HERE</router-link>.
|
||||||
</v-alert>
|
</v-alert>
|
||||||
|
|||||||
@@ -46,7 +46,13 @@ async function loadMyIssues(userId: string, projectId: string | null) {
|
|||||||
const requestId = ++myIssuesRequestId
|
const requestId = ++myIssuesRequestId
|
||||||
loadingMyIssues.value = true
|
loadingMyIssues.value = true
|
||||||
try {
|
try {
|
||||||
const res = await issueStore.list({ page: 1, limit: 50, assigneeId: userId, projectId, status: ACTIVE_STATUSES })
|
const res = await issueStore.list({
|
||||||
|
page: 1,
|
||||||
|
limit: 7,
|
||||||
|
assigneeId: userId,
|
||||||
|
projectId: projectId,
|
||||||
|
status: ACTIVE_STATUSES,
|
||||||
|
})
|
||||||
if (requestId !== myIssuesRequestId) return
|
if (requestId !== myIssuesRequestId) return
|
||||||
myIssues.value = res.list
|
myIssues.value = res.list
|
||||||
} finally {
|
} finally {
|
||||||
@@ -233,7 +239,7 @@ function onClickCard(status?: string) {
|
|||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<v-list v-if="projects.length" density="compact">
|
<v-list v-if="projects.length" density="compact">
|
||||||
<v-list-item v-for="project in projects.slice(0, 6)" :key="project.id" @click="openProject(project)">
|
<v-list-item v-for="project in projects.slice(0, 7)" :key="project.id" @click="openProject(project)">
|
||||||
<label-text :label="project.key" :text="project.name" />
|
<label-text :label="project.key" :text="project.name" />
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
</v-list>
|
</v-list>
|
||||||
|
|||||||
Reference in new issue
Block a user