From 20aec46a08f67424f73423aa025eee03e88dcef5 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 14 Oct 2019 14:38:21 +0200 Subject: [PATCH] Show event onlineAddress Signed-off-by: Thomas Citharel --- js/src/views/Event/Event.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/js/src/views/Event/Event.vue b/js/src/views/Event/Event.vue index 8fb98e27f..592807e3e 100644 --- a/js/src/views/Event/Event.vue +++ b/js/src/views/Event/Event.vue @@ -118,6 +118,10 @@ import {ParticipantRole} from "@/types/event.model"; + + + {{ urlToHostname(event.onlineAddress) }} +
@@ -544,6 +548,9 @@ export default class Event extends EventMixin { return this.event.options.maximumAttendeeCapacity - this.event.participantStats.participants; } + urlToHostname(url: string): string { + return (new URL(url)).hostname; + } }