2019-12-20 13:04:34 +01:00
|
|
|
<template>
|
2020-11-06 11:34:32 +01:00
|
|
|
<redirect-with-account :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";
|
2020-02-18 08:57:00 +01:00
|
|
|
import RouteName from "../../router/name";
|
2019-12-20 13:04:34 +01:00
|
|
|
|
|
|
|
@Component({
|
2020-11-06 11:34:32 +01:00
|
|
|
components: { RedirectWithAccount },
|
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
|
|
|
|
2019-12-20 13:04:34 +01:00
|
|
|
get uri(): string {
|
2020-02-18 08:57:00 +01:00
|
|
|
return `${window.location.origin}${
|
|
|
|
this.$router.resolve({
|
|
|
|
name: RouteName.EVENT,
|
|
|
|
params: { uuid: this.uuid },
|
|
|
|
}).href
|
|
|
|
}`;
|
2019-12-20 13:04:34 +01:00
|
|
|
}
|
|
|
|
|
2020-11-06 11:34:32 +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>
|