@@ -15,7 +14,7 @@ import {ParticipantRole} from "@/types/event.model";
{{ event.title }}
-
+
{{ $tc('One person is going', event.participantStats.going, {approved: event.participantStats.going}) }}
@@ -111,23 +110,27 @@ import {ParticipantRole} from "@/types/event.model";
-
-
{{ $t('No address defined') }}
-
-
- {{ event.physicalAddress.description }}
- {{ event.physicalAddress.street }}
- {{ event.physicalAddress.postalCode }} {{ event.physicalAddress.locality }}
-
-
+
+
+ {{ $t('No address defined') }}
+
+
+
+
+
+ {{ physicalAddress.poiInfos.name }}
+ {{ physicalAddress.poiInfos.alternativeName }}
+
+
+
{{ $t('Show map') }}
-
+
@@ -254,7 +257,7 @@ import IdentityPicker from '@/views/Account/IdentityPicker.vue';
import ParticipationButton from '@/components/Event/ParticipationButton.vue';
import { GraphQLError } from 'graphql';
import { RouteName } from '@/router';
-import HTML = Mocha.reporters.HTML;
+import { Address } from '@/types/address.model';
@Component({
components: {
@@ -596,11 +599,13 @@ export default class Event extends EventMixin {
}
get eventCapacityOK(): boolean {
+ if (this.event.draft) return true;
if (!this.event.options.maximumAttendeeCapacity) return true;
return this.event.options.maximumAttendeeCapacity > this.event.participantStats.participant;
}
get numberOfPlacesStillAvailable(): number {
+ if (this.event.draft) return this.event.options.maximumAttendeeCapacity;
return this.event.options.maximumAttendeeCapacity - this.event.participantStats.participant;
}
@@ -611,6 +616,11 @@ export default class Event extends EventMixin {
return null;
}
}
+
+ get physicalAddress(): Address|null {
+ if (!this.event.physicalAddress) return null;
+ return new Address(this.event.physicalAddress);
+ }
}