[cleanup] Minor styling fixes
This commit is contained in:
parent
7eb0074111
commit
7b622f96ea
|
@ -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,
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue