[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

@ -63,7 +63,7 @@ export default defineComponent({
const editor = ref<FG.Event | undefined>(undefined); const editor = ref<FG.Event | undefined>(undefined);
const events = ref<FG.Event[]>([]); const events = ref<FG.Event[]>([]);
const scrollDiv = ref<Element>() const scrollDiv = ref<Element>();
const agendas = computed<Agendas>(() => { const agendas = computed<Agendas>(() => {
const ag = {} as Agendas; const ag = {} as Agendas;
@ -159,7 +159,8 @@ export default defineComponent({
asYear, asYear,
asMonth, asMonth,
edit, edit,
editor,scrollDiv, editor,
scrollDiv,
editDone, editDone,
load, load,
remove, 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 { export interface RecurrenceRule {
frequency: string; frequency: string;
@ -13,13 +13,13 @@ interface InvitationData {
} }
interface InvitationResponseData { interface InvitationResponseData {
event: number, event: number;
job: number, job: number;
invitee: string invitee: string;
} }
export interface EventNotification extends FG_Plugin.Notification { export interface EventNotification extends FG_Plugin.Notification {
data: { data: {
type: number type: number;
} & (InvitationData | InvitationResponseData); } & (InvitationData | InvitationResponseData);
} }

View File

@ -30,7 +30,10 @@ function transpile(msg: FG_Plugin.Notification) {
message.link = { name: 'events-requests' }; message.link = { name: 'events-requests' };
} else if ((message.data.type & EventTypes._mask_) === EventTypes.invitation_response) { } 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; return message;
} }

View File

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