Skip to content
6 changes: 6 additions & 0 deletions app/components/forms/wizard/basic-details-step.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ export default Component.extend(FormMixin, EventWizardMixin, {
return filter(this.get('data.event.tickets').toArray(), ticket => ticket.get('type') === 'paid').length > 0;
}),

hasDonationTickets: computed('data.event.tickets.[]', {
get() {
return filter(this.get('data.event.tickets').toArray(), ticket => ticket.get('type') === 'donation').length > 0;
}
}),

hasCodeOfConduct: computed('data.event.codeOfConduct', function() {
return !!this.get('data.event.codeOfConduct');
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
{{widgets/forms/link-input inputId='ticket_url' segmentedLink=data.event.segmentedTicketUrl}}
</div>
{{/if}}
{{#if hasPaidTickets}}
{{#if (or hasPaidTickets hasDonationTickets)}}
{{!-- Hiding discount code temporarily, till we get this feature ready to apply discount codes for events.
<div class="ui section divider"></div>
<div class="field">
Expand Down