Skip to content

Commit 82e368c

Browse files
committed
revert to non-component search input to temporarily fix test
1 parent 7d8aebb commit 82e368c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Frontend/src/components/FilterInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ref, watch } from "vue";
33
import debounce from "lodash/debounce";
44
55
const model = defineModel<string>({ required: true });
6-
const props = withDefaults(defineProps<{ placeholder?: string; ariaLabel?: string }>(), { placeholder: "Filter by name...", ariaLabel: "filter by name" });
6+
const props = withDefaults(defineProps<{ placeholder?: string; ariaLabel?: string }>(), { placeholder: "Filter by name...", ariaLabel: "Filter by name" });
77
const localInput = ref<string>(model.value);
88
99
const debounceUpdateModel = debounce((value: string) => {

src/Frontend/src/views/throughputreport/endpoints/DetectedListView.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ async function loadData() {
102102
data.value = results.filter((row) => row.is_known_endpoint === (props.source === DataSource.WellKnownEndpoint));
103103
}
104104
105+
function nameFilterChanged(event: Event) {
106+
filterData.name = (event.target as HTMLInputElement).value;
107+
}
108+
105109
function sortChanged(item: Item) {
106110
filterData.sort = item.value;
107111
}
@@ -174,7 +178,8 @@ async function save() {
174178
</select>
175179
</div>
176180
<div>
177-
<FilterInput v-model="filterData.name" />
181+
<FilterInput v-model="filterData.name" /> TODO: this is failing a test, should replace the line below
182+
<!-- <input type="search" aria-label="Filter by name" class="form-control format-text" :value="filterData.name" @input="nameFilterChanged" placeholder="Filter by name..." /> -->
178183
</div>
179184
</div>
180185
</div>

0 commit comments

Comments
 (0)