2019-12-20 13:04:34 +01:00
|
|
|
<template>
|
2020-11-30 10:24:11 +01:00
|
|
|
<redirect-with-account
|
2021-01-15 16:55:58 +01:00
|
|
|
v-if="uri"
|
2020-11-30 10:24:11 +01:00
|
|
|
:uri="uri"
|
|
|
|
:pathAfterLogin="`/events/${uuid}`"
|
|
|
|
:sentence="sentence"
|
|
|
|
/>
|
2019-12-20 13:04:34 +01:00
|
|
|
</template>
|
|
|
|
<script lang="ts">
|
2020-02-18 08:57:00 +01:00
|
|
|
import { Component, Prop, Vue } from "vue-property-decorator";
|
2020-11-06 11:34:32 +01:00
|
|
|
import RedirectWithAccount from "@/components/Utils/RedirectWithAccount.vue";
|
2021-01-15 16:55:58 +01:00
|
|
|
import { FETCH_EVENT } from "@/graphql/event";
|
|
|
|
import { IEvent } from "@/types/event.model";
|
2019-12-20 13:04:34 +01:00
|
|
|
|
|
|
|
@Component({
|
2020-11-06 11:34:32 +01:00
|
|
|
components: { RedirectWithAccount },
|
2021-01-15 16:55:58 +01:00
|
|
|
apollo: {
|
|
|
|
event: {
|
|
|
|
query: FETCH_EVENT,
|
|
|
|
fetchPolicy: "cache-and-network",
|
|
|
|
variables() {
|
|
|
|
return {
|
|
|
|
uuid: this.uuid,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
skip() {
|
|
|
|
return !this.uuid;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-10-10 16:24:12 +02:00
|
|
|
metaInfo() {
|
|
|
|
return {
|
|
|
|
title: this.$t("Participation with account") as string,
|
2021-11-03 09:47:10 +01:00
|
|
|
meta: [{ name: "robots", content: "noindex" }],
|
2021-10-10 16:24:12 +02:00
|
|
|
};
|
|
|
|
},
|
2019-12-20 13:04:34 +01:00
|
|
|
})
|
|
|
|
export default class ParticipationWithAccount extends Vue {
|
|
|
|
@Prop({ type: String, required: true }) uuid!: string;
|
2020-02-18 08:57:00 +01:00
|
|
|
|
2021-01-15 16:55:58 +01:00
|
|
|
event!: IEvent;
|
|
|
|
|
|
|
|
get uri(): string | undefined {
|
|
|
|
return this.event?.url;
|
2019-12-20 13:04:34 +01:00
|
|
|
}
|
|
|
|
|
2020-11-30 10:24:11 +01:00
|
|
|
sentence = this.$t(
|
|
|
|
"We will redirect you to your instance in order to interact with this event"
|
|
|
|
);
|
2019-12-20 13:04:34 +01:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
</script>
|