You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mobilizon.chapril.org-mobil.../js/src/mixins/actor.ts

15 lines
478 B

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
);
}
}