2d541f2e32
And disable eslint when building in prod mode Signed-off-by: Thomas Citharel <tcit@tcit.fr>
15 lines
478 B
TypeScript
15 lines
478 B
TypeScript
import { IActor } from "@/types/actor";
|
|
import { IEvent } from "@/types/event.model";
|
|
import { Component, Vue } from "vue-property-decorator";
|
|
|
|
@Component
|
|
export default class ActorMixin extends Vue {
|
|
static actorIsOrganizer(actor: IActor, event: IEvent): boolean {
|
|
console.log("actorIsOrganizer actor", actor.id);
|
|
console.log("actorIsOrganizer event", event);
|
|
return (
|
|
event.organizerActor !== undefined && actor.id === event.organizerActor.id
|
|
);
|
|
}
|
|
}
|