From 6ad43d2851d409e23653b2d342ca1f7a9776db28 Mon Sep 17 00:00:00 2001 From: Stanislav Romanov Date: Thu, 2 Mar 2023 10:33:09 +0300 Subject: [PATCH] Rename filters indexUids statuses types --- app/controllers/admin/tasks/index.js | 14 +++++++------- app/routes/admin/tasks/index.js | 6 +++--- app/templates/admin/tasks/index.hbs | 23 ++++++++++------------- 3 files changed, 20 insertions(+), 23 deletions(-) diff --git a/app/controllers/admin/tasks/index.js b/app/controllers/admin/tasks/index.js index 53043e7..cd14ab7 100644 --- a/app/controllers/admin/tasks/index.js +++ b/app/controllers/admin/tasks/index.js @@ -10,13 +10,13 @@ export default class AdminTasksIndexController extends Controller { taskStatuses = taskStatuses; taskTypes = taskTypes; - queryParams = ['limit', 'status', 'type', 'indexUid']; + queryParams = ['limit', 'statuses', 'types', 'indexUids']; @tracked limit = 20; @tracked from; - @tracked status; - @tracked type; - @tracked indexUid; + @tracked statuses; + @tracked types; + @tracked indexUids; @use tasks = resource(() => { @@ -25,9 +25,9 @@ export default class AdminTasksIndexController extends Controller { const params = { limit: this.limit, from: this.from, - status: this.status, - type: this.type, - indexUid: this.indexUid, + statuses: this.statuses, + types: this.types, + indexUids: this.indexUids, }; this.meilisearch.getTasks(params).then((data) => { diff --git a/app/routes/admin/tasks/index.js b/app/routes/admin/tasks/index.js index db71780..6a5d3f4 100644 --- a/app/routes/admin/tasks/index.js +++ b/app/routes/admin/tasks/index.js @@ -8,9 +8,9 @@ export default class AdminTasksIndexRoute extends Route { queryParams = { limit: { refreshModel: true }, - status: { refreshModel: true }, - type: { refreshModel: true }, - indexUid: { refreshModel: true }, + statuses: { refreshModel: true }, + types: { refreshModel: true }, + indexUids: { refreshModel: true }, }; model() { diff --git a/app/templates/admin/tasks/index.hbs b/app/templates/admin/tasks/index.hbs index 1bd2627..774f013 100644 --- a/app/templates/admin/tasks/index.hbs +++ b/app/templates/admin/tasks/index.hbs @@ -1,31 +1,31 @@
- {{! indexUid }} + {{! indexUids }} - {{! status }} + {{! statuses }} - {{! status }} + {{! types }} @@ -49,10 +49,7 @@ >{{data.uid}} - {{data.indexUid}} + {{data.indexUid}}