2020-02-18 08:57:00 +01:00
|
|
|
import { IActor } from "@/types/actor";
|
|
|
|
import { IEvent } from "@/types/event.model";
|
|
|
|
import { Component, Vue } from "vue-property-decorator";
|
2019-09-18 17:32:37 +02:00
|
|
|
|
|
|
|
@Component
|
|
|
|
export default class ActorMixin extends Vue {
|
2020-11-27 19:27:44 +01:00
|
|
|
static actorIsOrganizer(actor: IActor, event: IEvent): boolean {
|
2020-02-18 08:57:00 +01:00
|
|
|
console.log("actorIsOrganizer actor", actor.id);
|
|
|
|
console.log("actorIsOrganizer event", event);
|
2020-11-30 10:24:11 +01:00
|
|
|
return (
|
|
|
|
event.organizerActor !== undefined && actor.id === event.organizerActor.id
|
|
|
|
);
|
2019-09-18 17:32:37 +02:00
|
|
|
}
|
|
|
|
}
|