From 17c2e26ecaa9fc5c10345f45b94ff4163c94449a Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Thu, 4 May 2023 13:55:03 -0700 Subject: [PATCH] minor changes and cleanup --- client/src/components/Indices/filtersMixin.js | 2 +- client/src/components/admin/JobsList.vue | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/client/src/components/Indices/filtersMixin.js b/client/src/components/Indices/filtersMixin.js index d2c3870c1bb5..845935c09513 100644 --- a/client/src/components/Indices/filtersMixin.js +++ b/client/src/components/Indices/filtersMixin.js @@ -19,7 +19,7 @@ export default { }, computed: { isFiltered() { - return !!this.filter; + return Boolean(this.filter); }, effectiveFilter() { let filter = this.filter; diff --git a/client/src/components/admin/JobsList.vue b/client/src/components/admin/JobsList.vue index d8d2073a10fc..9bb2a511c3a2 100644 --- a/client/src/components/admin/JobsList.vue +++ b/client/src/components/admin/JobsList.vue @@ -36,11 +36,7 @@ - + @@ -109,7 +105,6 @@ import { commonJobFields } from "./JobFields"; import { errorMessageAsString } from "utils/simple-error"; import { jobsProvider } from "components/providers/JobProvider"; import Heading from "components/Common/Heading"; -import IndexFilter from "components/Indices/IndexFilter"; import filtersMixin from "components/Indices/filtersMixin"; function cancelJob(jobId, message) { @@ -144,7 +139,7 @@ returned. So tool:'cat1' would show only jobs from the cat1