mirror of
https://github.com/Gimanh/taskview-community.git
synced 2026-09-11 13:29:17 +00:00
fix: add task on the main screen when no project is created
This commit is contained in:
+1
-1
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user