Show event onlineAddress
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
e17132b22f
commit
20aec46a08
@ -118,6 +118,10 @@ import {ParticipantRole} from "@/types/event.model";
|
||||
</div>
|
||||
</b-modal>
|
||||
</div>
|
||||
<span class="online-address" v-if="event.onlineAddress">
|
||||
<b-icon icon="link"></b-icon>
|
||||
<a :href="event.onlineAddress">{{ urlToHostname(event.onlineAddress) }}</a>
|
||||
</span>
|
||||
<div class="organizer">
|
||||
<span>
|
||||
<span v-if="event.organizerActor">
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@ -627,6 +634,10 @@ export default class Event extends EventMixin {
|
||||
}
|
||||
}
|
||||
|
||||
span.online-address {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
div.organizer {
|
||||
display: inline-flex;
|
||||
padding-top: 10px;
|
||||
|
Loading…
Reference in New Issue
Block a user