Skip to content

Commit cf9532c

Browse files
fix: Show Location, Online Event, Mixed Event or To be Announced info correctly (#5620)
1 parent d2bed98 commit cf9532c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/templates/components/orders/event-info.hbs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,17 @@
1212
<h3 class="weight-400">{{t 'When & Where'}}</h3>
1313
</div>
1414
<div class="ui padded segment">
15-
<strong>{{t 'At'}} {{this.data.event.locationName}}</strong>
15+
{{#if this.data.event.online}}
16+
{{#if this.data.event.locationName}}
17+
<strong>{{t 'Event taking place online and at'}} {{this.data.event.locationName}}</strong>
18+
{{else}}
19+
<strong>{{t 'Online Event'}}</strong>
20+
{{/if}}
21+
{{else if this.data.event.locationName}}
22+
<strong>{{t 'At'}} {{this.data.event.locationName}}</strong>
23+
{{else}}
24+
<strong>{{t 'Location or online event details to be announced'}}</strong>
25+
{{/if}}
1626
<br>
1727
<strong>{{t 'From'}}:</strong> {{header-date this.data.event.startsAt}}
1828
<br>

0 commit comments

Comments
 (0)