[cleanup] Minor styling fixes

This commit is contained in:
Ferdinand Thiessen 2021-11-25 15:36:32 +01:00
parent 7eb0074111
commit 7b622f96ea
4 changed files with 14 additions and 10 deletions

View File

@ -26,7 +26,7 @@
</q-item>
<template v-for="(events, index) in agendas" :key="index">
<q-separator />
<q-item-label overline>{{index}}</q-item-label>
<q-item-label overline>{{ index }}</q-item-label>
<q-item v-for="(event, idx) in events" :key="idx"
><event-slot :model-value="event" />{{ idx }}</q-item
>
@ -63,7 +63,7 @@ export default defineComponent({
const editor = ref<FG.Event | undefined>(undefined);
const events = ref<FG.Event[]>([]);
const scrollDiv = ref<Element>()
const scrollDiv = ref<Element>();
const agendas = computed<Agendas>(() => {
const ag = {} as Agendas;
@ -159,7 +159,8 @@ export default defineComponent({
asYear,
asMonth,
edit,
editor,scrollDiv,
editor,
scrollDiv,
editDone,
load,
remove,

10
src/events.d.ts vendored
View File

@ -1,4 +1,4 @@
import { FG_Plugin } from "@flaschengeist/types";
import { FG_Plugin } from '@flaschengeist/types';
export interface RecurrenceRule {
frequency: string;
@ -13,13 +13,13 @@ interface InvitationData {
}
interface InvitationResponseData {
event: number,
job: number,
invitee: string
event: number;
job: number;
invitee: string;
}
export interface EventNotification extends FG_Plugin.Notification {
data: {
type: number
type: number;
} & (InvitationData | InvitationResponseData);
}

View File

@ -30,7 +30,10 @@ function transpile(msg: FG_Plugin.Notification) {
message.link = { name: 'events-requests' };
} else if ((message.data.type & EventTypes._mask_) === EventTypes.invitation_response) {
message.link = {name: 'events-single-view', params: {id: (<InvitationResponseData>message.data).event}}
message.link = {
name: 'events-single-view',
params: { id: (<InvitationResponseData>message.data).event },
};
}
return message;
}

View File

@ -53,7 +53,7 @@ export const privateRoutes: FG_Plugin.NamedRouteRecordRaw[] = [
name: 'events-single-view',
path: 'events/:id',
component: () => import('../pages/EventPage.vue'),
props: true
props: true,
},
{
name: 'events-edit',