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 = ''
|
||||
showForm.value = false
|
||||
}
|
||||
|
||||
const onCancel = () => {
|
||||
showForm.value = false
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -54,15 +58,16 @@ const onCreate = async () => {
|
||||
placeholder="Describe your issue"
|
||||
autofocus
|
||||
@keyup.enter="onCreate"
|
||||
@keyup.esc="onCancel"
|
||||
/>
|
||||
<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>
|
||||
</template>
|
||||
</v-list-item>
|
||||
<v-list-item v-else-if="showForm && !current">
|
||||
<div>
|
||||
<v-alert closable density="compact" @click:close="showForm = false">
|
||||
<v-alert closable density="compact" @click:close="onCancel">
|
||||
Select or create project
|
||||
<router-link class="text-decoration-none text-link text-capitalize" to="/settings/projects">HERE</router-link>.
|
||||
</v-alert>
|
||||
|
||||
@@ -46,7 +46,13 @@ async function loadMyIssues(userId: string, projectId: string | null) {
|
||||
const requestId = ++myIssuesRequestId
|
||||
loadingMyIssues.value = true
|
||||
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
|
||||
myIssues.value = res.list
|
||||
} finally {
|
||||
@@ -233,7 +239,7 @@ function onClickCard(status?: string) {
|
||||
</v-card-title>
|
||||
<v-divider />
|
||||
<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" />
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
|
||||
Reference in new issue
Block a user