Refine admin panel workflows
This commit is contained in:
@@ -4,7 +4,9 @@ import { ArrowDownRight, ArrowUpRight, BarChart3, Clock3, LayoutDashboard, Shiel
|
||||
import { RouterLink } from 'vue-router'
|
||||
|
||||
import AdminPageHeader from '../../components/admin/AdminPageHeader.vue'
|
||||
import AdminSeasonToolbar from '../../components/admin/AdminSeasonToolbar.vue'
|
||||
import Card from '../../components/ui/Card.vue'
|
||||
import { getVoteMetricValue } from '../../lib/adminMetrics'
|
||||
import { useAwardsStore } from '../../stores/awards'
|
||||
|
||||
const store = useAwardsStore()
|
||||
@@ -60,7 +62,7 @@ const yearTotals = computed(() => [
|
||||
},
|
||||
{
|
||||
label: 'Stimmen gesamt',
|
||||
value: metrics.value.find((metric) => metric.label === 'Stimmen')?.value ?? 0,
|
||||
value: getVoteMetricValue(metrics.value),
|
||||
note: 'alle abgegebenen Votes',
|
||||
icon: BarChart3,
|
||||
},
|
||||
@@ -166,6 +168,8 @@ const operationChecks = computed(() => {
|
||||
:icon="LayoutDashboard"
|
||||
/>
|
||||
|
||||
<AdminSeasonToolbar />
|
||||
|
||||
<section class="grid gap-4 xl:grid-cols-[1.15fr_0.85fr]">
|
||||
<Card class="overflow-hidden">
|
||||
<div class="border-b border-violet-100 bg-gradient-to-br from-white via-violet-50/70 to-amber-50/60 p-6">
|
||||
|
||||
Reference in New Issue
Block a user