Cleanup GroupEvents

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-06-11 18:30:28 +02:00
parent 7f61dd0c8e
commit a7a38c7f69
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -89,17 +89,16 @@ import { mixins } from "vue-class-component";
import RouteName from "@/router/name"; import RouteName from "@/router/name";
import Subtitle from "@/components/Utils/Subtitle.vue"; import Subtitle from "@/components/Utils/Subtitle.vue";
import EventListViewCard from "@/components/Event/EventListViewCard.vue"; import EventListViewCard from "@/components/Event/EventListViewCard.vue";
import { CURRENT_ACTOR_CLIENT, PERSON_MEMBERSHIPS } from "@/graphql/actor"; import { PERSON_MEMBERSHIPS } from "@/graphql/actor";
import GroupMixin from "@/mixins/group"; import GroupMixin from "@/mixins/group";
import { IMember } from "@/types/actor/member.model"; import { IMember } from "@/types/actor/member.model";
import { FETCH_GROUP_EVENTS } from "@/graphql/event"; import { FETCH_GROUP_EVENTS } from "@/graphql/event";
import { IGroup, IPerson, usernameWithDomain } from "../../types/actor"; import { usernameWithDomain } from "../../types/actor";
const EVENTS_PAGE_LIMIT = 10; const EVENTS_PAGE_LIMIT = 10;
@Component({ @Component({
apollo: { apollo: {
currentActor: CURRENT_ACTOR_CLIENT,
memberships: { memberships: {
query: PERSON_MEMBERSHIPS, query: PERSON_MEMBERSHIPS,
fetchPolicy: "cache-and-network", fetchPolicy: "cache-and-network",
@ -142,12 +141,8 @@ const EVENTS_PAGE_LIMIT = 10;
}, },
}) })
export default class GroupEvents extends mixins(GroupMixin) { export default class GroupEvents extends mixins(GroupMixin) {
group!: IGroup;
memberships!: IMember[]; memberships!: IMember[];
currentActor!: IPerson;
eventsPage = 1; eventsPage = 1;
usernameWithDomain = usernameWithDomain; usernameWithDomain = usernameWithDomain;