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