From 0bb287023e36e0eefe3371cb8e241207236df1c6 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 12 May 2025 12:10:26 +0200 Subject: [PATCH] feat(home): correctly check if tasks exist before showing import hint Resolves https://community.vikunja.io/t/import-your-data-button-is-shown-unnecessarily/3681/5 --- frontend/src/components/home/ImportHint.vue | 47 +++++++++++++++++++++ frontend/src/views/Home.vue | 22 +--------- 2 files changed, 49 insertions(+), 20 deletions(-) create mode 100644 frontend/src/components/home/ImportHint.vue diff --git a/frontend/src/components/home/ImportHint.vue b/frontend/src/components/home/ImportHint.vue new file mode 100644 index 000000000..af54067a0 --- /dev/null +++ b/frontend/src/components/home/ImportHint.vue @@ -0,0 +1,47 @@ + + + \ No newline at end of file diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index 87fc26c82..2437a30f2 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -23,17 +23,7 @@ class="is-max-width-desktop" @taskAdded="updateTaskKey" /> - +
{ // If we don't check this, it tries to load the project background right after logging out @@ -94,9 +79,6 @@ const projectHistory = computed(() => { const tasksLoaded = ref(false) -const migratorsEnabled = computed(() => configStore.availableMigrators?.length > 0) -const hasTasks = computed(() => baseStore.hasTasks) -const loading = computed(() => taskStore.isLoading) const deletionScheduledAt = computed(() => parseDateOrNull(authStore.info?.deletionScheduledAt)) // This is to reload the tasks list after adding a new task through the global task add.