From 4696c49b857912d2460cf278d910c529ea10e418 Mon Sep 17 00:00:00 2001 From: Doljinsuren Enkhbayar Date: Thu, 16 May 2024 11:50:16 +0800 Subject: [PATCH] added selection --- addon/controllers/users/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addon/controllers/users/index.js b/addon/controllers/users/index.js index 8e2a978..36c4a97 100644 --- a/addon/controllers/users/index.js +++ b/addon/controllers/users/index.js @@ -266,7 +266,8 @@ export default class UsersIndexController extends Controller { * @void */ @action exportUsers() { - this.crud.export('user'); + const selections = this.table.selectedRows.map((_) => _.id); + this.crud.export('user', { params: { selections } }); } /**