diff --git a/app/assets/javascripts/admin/controllers/admin-reports.js.es6 b/app/assets/javascripts/admin/controllers/admin-reports.js.es6 index d83a031c6bc..d11e67305a8 100644 --- a/app/assets/javascripts/admin/controllers/admin-reports.js.es6 +++ b/app/assets/javascripts/admin/controllers/admin-reports.js.es6 @@ -40,7 +40,7 @@ export default Ember.Controller.extend({ name: this.get("model.type"), start_date: this.get('startDate'), end_date: this.get('endDate'), - category_id: this.get('categoryId') == 'all' ? undefined : this.get('categoryId') + category_id: this.get('categoryId') === 'all' ? undefined : this.get('categoryId') }).then(outputExportResult); } } diff --git a/app/assets/javascripts/admin/templates/reports.hbs b/app/assets/javascripts/admin/templates/reports.hbs index 5e1b406ea6a..718a61a2c1d 100644 --- a/app/assets/javascripts/admin/templates/reports.hbs +++ b/app/assets/javascripts/admin/templates/reports.hbs @@ -5,7 +5,7 @@ {{i18n 'admin.dashboard.reports.end_date'}} {{input type="date" value=endDate}} {{combo-box valueAttribute="value" content=categoryOptions value=categoryId}} {{d-button action="refreshReport" class="btn-primary" label="admin.dashboard.reports.refresh_report" icon="refresh"}} - {{d-button action="exportCsv" label="admin.export_csv.button_text"}} + {{d-button action="exportCsv" label="admin.export_csv.button_text" icon="download"}}