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.
|
|
|
<template>
|
|
|
|
<redirect-with-account
|
|
|
|
:uri="uri"
|
|
|
|
:pathAfterLogin="`/events/${uuid}`"
|
|
|
|
:sentence="sentence"
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Prop, Vue } from "vue-property-decorator";
|
|
|
|
import RedirectWithAccount from "@/components/Utils/RedirectWithAccount.vue";
|
|
|
|
import RouteName from "../../router/name";
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
components: { RedirectWithAccount },
|
|
|
|
})
|
|
|
|
export default class ParticipationWithAccount extends Vue {
|
|
|
|
@Prop({ type: String, required: true }) uuid!: string;
|
|
|
|
|
|
|
|
get uri(): string {
|
|
|
|
return `${window.location.origin}${
|
|
|
|
this.$router.resolve({
|
|
|
|
name: RouteName.EVENT,
|
|
|
|
params: { uuid: this.uuid },
|
|
|
|
}).href
|
|
|
|
}`;
|
|
|
|
}
|
|
|
|
|
|
|
|
sentence = this.$t(
|
|
|
|
"We will redirect you to your instance in order to interact with this event"
|
|
|
|
);
|
|
|
|
}
|
|
|
|
</script>
|