Changed Notifications to Benachrichtigungen

Correcte getStartetWorkingTimes Functions
This commit is contained in:
2024-04-08 13:06:11 +02:00
parent e2a15644ce
commit 3a0f3f75b4
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ const { isNotificationsSlideoverOpen } = useDashboard()
</script> </script>
<template> <template>
<UDashboardSlideover v-model="isNotificationsSlideoverOpen" title="Notifications"> <UDashboardSlideover v-model="isNotificationsSlideoverOpen" title="Benachrichtigungen">
<!-- <NuxtLink v-for="notification in notifications" :key="notification.id" :to="`/inbox?id=${notification.id}`" class="p-3 rounded-md hover:bg-gray-50 dark:hover:bg-gray-800/50 cursor-pointer flex items-center gap-3 relative"> <!-- <NuxtLink v-for="notification in notifications" :key="notification.id" :to="`/inbox?id=${notification.id}`" class="p-3 rounded-md hover:bg-gray-50 dark:hover:bg-gray-800/50 cursor-pointer flex items-center gap-3 relative">
<UChip color="red" :show="!!notification.unread" inset> <UChip color="red" :show="!!notification.unread" inset>
<UAvatar v-bind="notification.sender.avatar" :alt="notification.sender.name" size="md" /> <UAvatar v-bind="notification.sender.avatar" :alt="notification.sender.name" size="md" />

View File

@@ -858,7 +858,7 @@ export const useDataStore = defineStore('data', () => {
}) })
const getStartedWorkingTimes = computed(() => () => { const getStartedWorkingTimes = computed(() => () => {
return workingtimes.value.filter(i => !i.end) return workingtimes.value.filter(i => !i.endDate)
}) })
const getStockByProductId = computed(() => (productId) => { const getStockByProductId = computed(() => (productId) => {