diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index 2f41a56da3b0..6f7aac5f9e88 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -6938,7 +6938,7 @@ export interface components { * Type * @constant */ - type: "parameter"; + type: "parameter_input"; /** When */ when: string | null; }; diff --git a/client/src/components/Common/FilterMenu.vue b/client/src/components/Common/FilterMenu.vue index 8dee4e4bd08d..f3deb4ee9894 100644 --- a/client/src/components/Common/FilterMenu.vue +++ b/client/src/components/Common/FilterMenu.vue @@ -4,7 +4,7 @@ import { faAngleDoubleUp, faQuestion, faRedo, faSearch } from "@fortawesome/free import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; import { BButton, BModal } from "bootstrap-vue"; import { kebabCase } from "lodash"; -import { computed, ref, watch } from "vue"; +import { computed, ref } from "vue"; import type Filtering from "@/utils/filtering"; import { type Alias, getOperatorForAlias } from "@/utils/filtering"; @@ -68,7 +68,6 @@ const props = withDefaults(defineProps(), { const emit = defineEmits<{ (e: "update:filter-text", filter: string): void; - (e: "on-backend-filter", filter: string): void; (e: "update:show-advanced", showAdvanced: boolean): void; (e: "on-search", filters: Record, filterText?: string, backendFilter?: string): void; }>(); @@ -127,25 +126,6 @@ function onToggle() { function updateFilterText(newFilterText: string) { emit("update:filter-text", newFilterText); } - -// as the filterText changes, emit a backend-filter that can be used as a backend query -watch( - () => props.filterText, - (newFilterText: string) => { - const defaultBackendFilter = props.filterClass.getFilterText(props.filterClass.defaultFilters, true); - const currentBackendFilter = props.filterClass.getFilterText(filters.value, true); - - const backendFilter = - defaultBackendFilter === currentBackendFilter - ? `${ - defaultBackendFilter && !newFilterText.includes(defaultBackendFilter) - ? defaultBackendFilter + " " - : "" - }` + newFilterText - : props.filterClass.getFilterText(filters.value, true); - emit("on-backend-filter", backendFilter); - } -);