From a8c9676c99c7da42ec71721e061f54cdbc616d76 Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Fri, 17 Dec 2021 20:41:53 -0500 Subject: [PATCH] ui: fix action call to set filter query param --- ui/app/controllers/clients/client/index.js | 1 - ui/app/controllers/jobs/job/task-group.js | 1 - ui/app/templates/clients/client/index.hbs | 6 +++--- ui/app/templates/jobs/job/task-group.hbs | 4 ++-- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ui/app/controllers/clients/client/index.js b/ui/app/controllers/clients/client/index.js index a918a7b8298..bc4eeec79b0 100644 --- a/ui/app/controllers/clients/client/index.js +++ b/ui/app/controllers/clients/client/index.js @@ -230,7 +230,6 @@ export default class ClientController extends Controller.extend(Sortable, Search return ns.sort().map(n => ({ key: n, label: n })); } - @action setFacetQueryParam(queryParam, selection) { this.set(queryParam, serialize(selection)); } diff --git a/ui/app/controllers/jobs/job/task-group.js b/ui/app/controllers/jobs/job/task-group.js index 796aab4ce3a..f8a0ec3620f 100644 --- a/ui/app/controllers/jobs/job/task-group.js +++ b/ui/app/controllers/jobs/job/task-group.js @@ -138,7 +138,6 @@ export default class TaskGroupController extends Controller.extend( return clients.sort().map(dc => ({ key: dc, label: dc })); } - @action setFacetQueryParam(queryParam, selection) { this.set(queryParam, serialize(selection)); } diff --git a/ui/app/templates/clients/client/index.hbs b/ui/app/templates/clients/client/index.hbs index 7e623678c40..c7096c9afa9 100644 --- a/ui/app/templates/clients/client/index.hbs +++ b/ui/app/templates/clients/client/index.hbs @@ -300,21 +300,21 @@ @label="Namespace" @options={{this.optionsNamespace}} @selection={{this.selectionNamespace}} - @onSelect={{action "setFacetQueryParam" "qpNamespace"}} + @onSelect={{action this.setFacetQueryParam "qpNamespace"}} />