fix: add task on the main screen when no project is created

This commit is contained in:
Nikolai Giman
2026-08-22 22:06:52 +02:00
parent 5dc5b387de
commit 19e0212edf
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "web-nuxt-ui",
"private": true,
"type": "module",
"version": "1.52.1",
"version": "1.52.2",
"scripts": {
"dev": "vite",
"build:packages": "pnpm --filter taskview-db-schemas build && pnpm --filter taskview-api build && pnpm --filter capacitor-widget-bridge build",
@@ -9,11 +9,9 @@
</template>
<script lang="ts" setup>
import { computed } from 'vue'
import { useI18n } from 'vue-i18n'
import { useGoalsStore } from '@/stores/goals.store'
import { useTaskView } from '@/composables/useTaskView'
const { t } = useI18n()
const goalsStore = useGoalsStore()
const hasActiveGoals = computed(() => goalsStore.goals.length > 0)
const { hasActiveGoals } = useTaskView()
</script>
+2 -1
View File
@@ -13,7 +13,8 @@ export const useTaskView = () => {
const isFullscreenModal = bp.smallerOrEqual('fullscreenModalMax')
return {
hasActiveGoals: computed(() => goalsStore.goals.some(g => !g.isInbox)),
// Any non-archived project counts, including the Inbox — tasks can be added there too
hasActiveGoals: computed(() => goalsStore.goals.some(g => !g.archive)),
isMobile,
isDesktop,
isFullscreenModal,