hide "All time entries are loaded" when no time entries are created yet

This commit is contained in:
Gregor Vostrak
2026-02-12 13:58:08 +01:00
parent 052424a581
commit 6f207a4926
2 changed files with 2 additions and 13 deletions

View File

@@ -17,7 +17,6 @@ import {
UserGroupIcon,
XMarkIcon,
DocumentTextIcon,
ViewColumnsIcon,
} from '@heroicons/vue/20/solid';
import { PanelLeft } from 'lucide-vue-next';
import NavigationSidebarItem from '@/Components/NavigationSidebarItem.vue';
@@ -36,7 +35,6 @@ import {
canViewProjects,
canViewReport,
canViewTags,
canViewTasks,
} from '@/utils/permissions';
import { isBillingActivated, isInvoicingActivated } from '@/utils/billing';
import type { User } from '@/types/models';
@@ -124,10 +122,7 @@ const page = usePage<{
<div v-bind="$attrs" class="flex flex-wrap bg-background text-text-secondary">
<!-- Mobile sidebar overlay -->
<Teleport to="body">
<div
v-if="showSidebarMenu"
class="fixed inset-0 z-40 lg:hidden"
@click="closeSidebar">
<div v-if="showSidebarMenu" class="fixed inset-0 z-40 lg:hidden" @click="closeSidebar">
<div
class="absolute inset-0 bg-default-background transition-opacity duration-200"
:class="sidebarVisible ? 'opacity-50' : 'opacity-0'" />
@@ -190,12 +185,6 @@ const page = usePage<{
:icon="CalendarIcon"
:current="route().current('calendar')"
:href="route('calendar')"></NavigationSidebarItem>
<NavigationSidebarItem
v-if="canViewTasks()"
title="Board"
:icon="ViewColumnsIcon"
:href="route('kanban')"
:current="route().current('kanban')"></NavigationSidebarItem>
<NavigationSidebarItem
title="Reporting"
:icon="ChartBarIcon"

View File

@@ -158,7 +158,7 @@ function deleteSelected() {
<span> Loading more time entries... </span>
</div>
<div
v-else-if="!hasNextPage"
v-else-if="!hasNextPage && timeEntries.length > 0"
class="flex justify-center items-center py-5 text-sm text-text-tertiary">
All time entries are loaded!
</div>