diff --git a/addon/controllers/management/contacts/index.js b/addon/controllers/management/contacts/index.js index f698e490..8dc3e4ca 100644 --- a/addon/controllers/management/contacts/index.js +++ b/addon/controllers/management/contacts/index.js @@ -317,7 +317,8 @@ export default class ManagementContactsIndexController extends BaseController { * @void */ @action exportContacts() { - this.crud.export('contact'); + const selections = this.table.selectedRows.map((_) => _.id); + this.crud.export('contact', { params: { selections } }); } /** diff --git a/addon/controllers/management/drivers/index.js b/addon/controllers/management/drivers/index.js index a7edc926..3a0c18a9 100644 --- a/addon/controllers/management/drivers/index.js +++ b/addon/controllers/management/drivers/index.js @@ -508,7 +508,8 @@ export default class ManagementDriversIndexController extends BaseController { * @void */ @action exportDrivers() { - this.crud.export('driver'); + const selections = this.table.selectedRows.map((_) => _.id); + this.crud.export('driver', { params: { selections } }); } /** diff --git a/addon/controllers/management/fleets/index.js b/addon/controllers/management/fleets/index.js index 48f9f7c8..e4798417 100644 --- a/addon/controllers/management/fleets/index.js +++ b/addon/controllers/management/fleets/index.js @@ -405,7 +405,8 @@ export default class ManagementFleetsIndexController extends BaseController { * @void */ @action exportFleets() { - this.crud.export('fleet'); + const selections = this.table.selectedRows.map((_) => _.id); + this.crud.export('fleet', { params: { selections } }); } /** diff --git a/addon/controllers/management/issues/index.js b/addon/controllers/management/issues/index.js index c5157fa3..7b4c440d 100644 --- a/addon/controllers/management/issues/index.js +++ b/addon/controllers/management/issues/index.js @@ -391,7 +391,8 @@ export default class ManagementIssuesIndexController extends BaseController { * @void */ @action exportIssues() { - this.crud.export('issue'); + const selections = this.table.selectedRows.map((_) => _.id); + this.crud.export('issue', { params: { selections } }); } /** diff --git a/addon/controllers/management/places/index.js b/addon/controllers/management/places/index.js index d221e5c2..770104bb 100644 --- a/addon/controllers/management/places/index.js +++ b/addon/controllers/management/places/index.js @@ -350,7 +350,8 @@ export default class ManagementPlacesIndexController extends BaseController { * @void */ @action exportPlaces() { - this.crud.export('place'); + const selections = this.table.selectedRows.map((_) => _.id); + this.crud.export('place', { params: { selections } }); } /** diff --git a/addon/controllers/management/vehicles/index.js b/addon/controllers/management/vehicles/index.js index f0367131..8345db89 100644 --- a/addon/controllers/management/vehicles/index.js +++ b/addon/controllers/management/vehicles/index.js @@ -467,7 +467,8 @@ export default class ManagementVehiclesIndexController extends BaseController { * @void */ @action exportVehicles() { - this.crud.export('vehicle'); + const selections = this.table.selectedRows.map((_) => _.id); + this.crud.export('vehicle', { params: { selections } }); } /** diff --git a/addon/controllers/management/vendors/index.js b/addon/controllers/management/vendors/index.js index 3ca5b9ac..6f8278aa 100644 --- a/addon/controllers/management/vendors/index.js +++ b/addon/controllers/management/vendors/index.js @@ -365,7 +365,8 @@ export default class ManagementVendorsIndexController extends BaseController { * @void */ @action exportVendors() { - this.crud.export('vendor'); + const selections = this.table.selectedRows.map((_) => _.id); + this.crud.export('vendor', { params: { selections } }); } /** diff --git a/addon/controllers/operations/orders/index.js b/addon/controllers/operations/orders/index.js index 8f0af035..0d41d8cf 100644 --- a/addon/controllers/operations/orders/index.js +++ b/addon/controllers/operations/orders/index.js @@ -822,7 +822,8 @@ export default class OperationsOrdersIndexController extends BaseController { * @memberof OperationsOrdersIndexController */ @action exportOrders() { - this.crud.export('order'); + const selections = this.table.selectedRows.map((_) => _.id); + this.crud.export('order', { params: { selections } }); } /** diff --git a/addon/controllers/operations/service-rates/index.js b/addon/controllers/operations/service-rates/index.js index a062c296..a6de92c2 100644 --- a/addon/controllers/operations/service-rates/index.js +++ b/addon/controllers/operations/service-rates/index.js @@ -249,7 +249,8 @@ export default class OperationsServiceRatesIndexController extends BaseControlle * @void */ @action exportServiceRates() { - this.crud.export('service-rate'); + const selections = this.table.selectedRows.map((_) => _.id); + this.crud.export('service-rate', { params: { selections } }); } /** diff --git a/addon/templates/operations/service-rates/index.hbs b/addon/templates/operations/service-rates/index.hbs index 04b62774..79a354bb 100644 --- a/addon/templates/operations/service-rates/index.hbs +++ b/addon/templates/operations/service-rates/index.hbs @@ -1,13 +1,6 @@