Fixed format of events

This commit is contained in:
Torsten Schulz
2024-06-23 17:32:45 +02:00
parent 692e989861
commit 8b89d8b800
26 changed files with 455 additions and 157 deletions

View File

@@ -49,19 +49,18 @@ export default {
},
methods: {
async fetchEvents() {
console.log(this.config);
try {
const response = await axios.get('/events/filter', {
params: this.config
});
console.log('Fetched events:', response.data.events);
const response = await axios.post('/events/filter',
this.config
);
this.events = response.data.events;
} catch (error) {
console.error('Fehler beim Abrufen der Events', error);
}
},
shouldDisplay(field) {
const displayFields = this.config.display.split('|');
return displayFields.includes(field);
return this.config.display.includes(field);
},
formatDateOrDay(date, dayOfWeek) {
if (date) {