add new day column to event table

This commit is contained in:
Adrian Zürcher
2025-11-29 15:55:44 +01:00
parent 5ecf1eca18
commit 62549c9039
5 changed files with 50 additions and 2 deletions

View File

@@ -3,6 +3,8 @@ import { ref, computed } from 'vue';
import type { Events } from 'src/vueLib/models/event';
import { useNotify } from 'src/vueLib/general/useNotify';
import { i18n } from 'boot/lang';
import MenuComponent from '../components/MenuComponent.vue';
import ClickableComponent from '../components/ClickableComponent.vue';
export function useEventTable() {
const Events = ref<Events>([]);
@@ -21,6 +23,7 @@ export function useEventTable() {
label: i18n.global.t('name'),
field: 'name',
sortable: true,
component: ClickableComponent,
},
{
name: 'attendees',
@@ -29,14 +32,30 @@ export function useEventTable() {
field: 'attendees',
sortable: true,
},
{
name: 'day',
align: 'left' as const,
label: i18n.global.t('day'),
field: 'day',
sortable: true,
component: ClickableComponent,
},
{
name: 'date',
align: 'left' as const,
label: i18n.global.t('dateAndTime'),
field: 'date',
sortable: true,
component: ClickableComponent,
},
{
name: 'option',
align: 'center' as const,
label: '',
field: 'option',
icon: 'option',
component: MenuComponent,
},
{ name: 'option', align: 'center' as const, label: '', field: 'option', icon: 'option' },
]);
const { NotifyResponse } = useNotify();