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

@@ -131,3 +131,12 @@ groupName: Gruppename
filterByColumn: Spaltenfilter filterByColumn: Spaltenfilter
filterByColumnValue: Spaltenwerte filterByColumnValue: Spaltenwerte
saveAsDefault: Aus Standard spichere saveAsDefault: Aus Standard spichere
day: Tag
Monday: Mäntig
Tuesday: Zistig
Wednesday: Mittwuch
Thursday: Donstig
Friday: Fritig
Saturday: Samstig
Sunday: Suntig
currentPassword: Aktuelles Passwort

View File

@@ -71,7 +71,7 @@ veryWeak: sehr Schwach
weak: Schwach weak: Schwach
fair: Ausreichend fair: Ausreichend
good: Gut good: Gut
strong: strong: Stark
passwordIsRequired: Password ist erforderlich passwordIsRequired: Password ist erforderlich
passwordTooShort: Das Passwort muss mindestens 8 Zeichen lang sein passwordTooShort: Das Passwort muss mindestens 8 Zeichen lang sein
passwordNeedsUppercase: Das Passwort muss mindestens einen Großbuchstaben enthalten passwordNeedsUppercase: Das Passwort muss mindestens einen Großbuchstaben enthalten
@@ -131,3 +131,12 @@ groupName: Gruppenname
filterByColumn: Spaltenfilter filterByColumn: Spaltenfilter
filterByColumnValue: Spaltenwerte filterByColumnValue: Spaltenwerte
saveAsDefault: Als Standard speichern saveAsDefault: Als Standard speichern
day: Tag
Monday: Montag
Tuesday: Dienstag
Wednesday: Mittwoch
Thursday: Donnerstag
Friday: Freitag
Saturday: Samstag
Sunday: Sonntag
currentPassword: Aktuelles Passwort

View File

@@ -131,3 +131,12 @@ groupName: Groupname
filterByColumn: Columnfilter filterByColumn: Columnfilter
filterByColumnValue: Columnvalues filterByColumnValue: Columnvalues
saveAsDefault: Save a Default saveAsDefault: Save a Default
day: Day
Monday: Monday
Tuesday: Tuesday
Wednesday: Wednesday
Thursday: Thursday
Friday: Friday
Saturday: Saturday
Sunday: Sunday
currentPassword: Current Password

View File

@@ -3,6 +3,8 @@ import type { Members } from './member';
export interface Event { export interface Event {
id: number; id: number;
name: string; name: string;
date?: string;
day?: string;
attendees: Members; attendees: Members;
} }

View File

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