empty project warning
Gitea Actions Demo / Deploy (push) Successful in 23s

This commit is contained in:
vadim committed 2026-09-24 18:22:32 +03:00
1 parent 63f732c8a2
commit 986a6a5814
2 files changed
+11 -5

No files matched your search

+11 -4
View File
@@ -28,9 +28,9 @@ const onCreate = async () => {
</script> </script>
<template> <template>
<v-list-item v-if="showForm" class=""> <v-list-item v-if="showForm && projectStore.current">
<template #prepend> <template #prepend>
<v-menu v-if="true"> <v-menu v-if="false">
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">
<v-icon v-bind="props" icon="mdi-square" /> <v-icon v-bind="props" icon="mdi-square" />
</template> </template>
@@ -57,12 +57,19 @@ const onCreate = async () => {
</div> </div>
</template> </template>
</v-list-item> </v-list-item>
<v-list-item class="d-flex justify-center" v-else @click="showForm = !showForm"> <v-list-item v-else-if="showForm && !projectStore.current">
<div>
<v-alert closable density="compact" @click:close="showForm = false">
Select or create project
<router-link class="text-decoration-none text-link text-capitalize" to="/settings/projects">HERE</router-link>.
</v-alert>
</div>
</v-list-item>
<v-list-item v-else class="d-flex justify-center" @click="showForm = !showForm">
<div class="d-flex ga-2 align-center"> <div class="d-flex ga-2 align-center">
<v-icon icon="mdi-plus" /> <v-icon icon="mdi-plus" />
<div>add issue</div> <div>add issue</div>
</div> </div>
<!-- <v-btn density="compact" variant="plain" prepend-icon="mdi-plus"> create </v-btn>-->
</v-list-item> </v-list-item>
</template> </template>
-1
View File
@@ -10,7 +10,6 @@ const currentProjectName = computed(() => current.value?.name ?? 'Select project
const selected = computed(() => (current.value ? [current.value.id] : [])) const selected = computed(() => (current.value ? [current.value.id] : []))
function select(value: unknown) { function select(value: unknown) {
console.log(value)
const id = Array.isArray(value) ? value[0] : value const id = Array.isArray(value) ? value[0] : value
const project = projects.value.find((el) => el.id === id) const project = projects.value.find((el) => el.id === id)