From 60000eeaf1c1cd782224646c67be47b9ec07a552 Mon Sep 17 00:00:00 2001 From: "D. Berge" Date: Wed, 30 Sep 2020 20:04:35 +0200 Subject: [PATCH] Make preplot lines list searchable --- lib/www/client/source/src/views/LineList.vue | 83 +++++++++++--------- 1 file changed, 44 insertions(+), 39 deletions(-) diff --git a/lib/www/client/source/src/views/LineList.vue b/lib/www/client/source/src/views/LineList.vue index 6008754..dcd538c 100644 --- a/lib/www/client/source/src/views/LineList.vue +++ b/lib/www/client/source/src/views/LineList.vue @@ -1,32 +1,50 @@ @@ -84,18 +102,9 @@ export default { } ], items: [], - options: {}, num_lines: null, sequences: [], - } - }, - - watch: { - options: { - handler () { - this.getLines(); - }, - deep: true + filter: null } }, @@ -112,11 +121,7 @@ export default { async getLines () { - const query = new URLSearchParams(this.options); - if (this.options.itemsPerPage < 0) { - query.delete("itemsPerPage"); - } - const url = `/project/${this.$route.params.project}/line?${query.toString()}`; + const url = `/project/${this.$route.params.project}/line`; this.items = await this.api([url]) || [];