Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Download Tickets -> All Tickets #5856

Merged
merged 4 commits into from
Dec 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/styles/partials/overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ body.dimmable.undetached.dimmed {
justify-content: space-between;
}

.flex-1 {
flex: 1;
}

.upper-case {
text-transform: uppercase;
}
10 changes: 5 additions & 5 deletions app/templates/orders/view.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
@data={{this.model.order}} />
<br/>
{{#if (eq this.model.order.user.id this.authManager.currentUser.id)}}
<div class="d-flex space-between">
<button class="ui labeled icon {{if this.isLoadingTickets 'loading'}} {{if this.device.isMobile 'fluid'}} button"
<div class="d-flex">
<button class="ui labeled icon flex-1 {{if this.isLoadingTickets 'loading'}} {{if this.device.isMobile 'fluid'}} button"
{{action this.downloadTickets this.model.event.name this.model.order.identifier}}>
<i class="ticket alternate icon"></i>
{{t 'Download Tickets'}}
<i class="download icon"></i>
{{t 'All Tickets'}}
</button>
<button {{action 'downloadInvoice' this.model.event.name this.model.order.identifier }}
class="ui labeled icon blue {{if this.isLoadingInvoice 'loading'}} {{if this.device.isMobile 'fluid'}} button">
class="ui labeled icon blue flex-1 {{if this.isLoadingInvoice 'loading'}} {{if this.device.isMobile 'fluid'}} button">
<i class="file alternate icon"></i>
{{t 'Download Invoice'}}
</button>
Expand Down