Added Repository Changelog
This commit is contained in:
@@ -16,6 +16,7 @@ const route = useRoute()
|
||||
const auth = useAuthStore()
|
||||
const labelPrinter = useLabelPrinterStore()
|
||||
const calculatorStore = useCalculatorStore()
|
||||
const { hasUnread, refresh: refreshChangelog } = useChangelog()
|
||||
|
||||
const month = dayjs().format("MM")
|
||||
|
||||
@@ -114,7 +115,7 @@ const groups = computed(() => [
|
||||
].filter(Boolean))
|
||||
|
||||
// --- Footer Links nutzen jetzt den zentralen Calculator Store ---
|
||||
const footerLinks = computed(() => [
|
||||
const footerItems = computed(() => [
|
||||
{
|
||||
label: 'Taschenrechner',
|
||||
icon: 'i-heroicons-calculator',
|
||||
@@ -123,10 +124,15 @@ const footerLinks = computed(() => [
|
||||
{
|
||||
label: 'Hilfe & Info',
|
||||
icon: 'i-heroicons-question-mark-circle',
|
||||
badge: hasUnread.value ? 'Neu' : null,
|
||||
click: () => isHelpSlideoverOpen.value = true
|
||||
}
|
||||
])
|
||||
|
||||
onMounted(() => {
|
||||
void refreshChangelog()
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -256,7 +262,25 @@ const footerLinks = computed(() => [
|
||||
<UColorModeToggle class="ml-3"/>
|
||||
<LabelPrinterButton class="w-full"/>
|
||||
|
||||
<UDashboardSidebarLinks :links="footerLinks" class="w-full"/>
|
||||
<div class="flex flex-col gap-1">
|
||||
<UButton
|
||||
v-for="item in footerItems"
|
||||
:key="item.label"
|
||||
color="gray"
|
||||
variant="ghost"
|
||||
class="w-full"
|
||||
:icon="item.icon"
|
||||
@click="item.click ? item.click() : null"
|
||||
>
|
||||
{{ item.label }}
|
||||
|
||||
<template #trailing>
|
||||
<UBadge v-if="item.badge" color="primary" variant="solid" size="xs">
|
||||
{{ item.badge }}
|
||||
</UBadge>
|
||||
</template>
|
||||
</UButton>
|
||||
</div>
|
||||
|
||||
<UDivider class="sticky bottom-0 w-full"/>
|
||||
<UserDropdown style="margin-bottom: env(safe-area-inset-bottom, 10px) !important;" class="w-full"/>
|
||||
|
||||
Reference in New Issue
Block a user