From cc707ea5d135a92f28715122299d3d889b422988 Mon Sep 17 00:00:00 2001 From: Hugo Bollon Date: Mon, 30 Aug 2021 14:08:52 +0200 Subject: [PATCH] fix(frontend): performance issue with resource filter with multiples modules (#208) feat(frontend): resource filter now match any substring in res path or name --- static/terraboard-vuejs/src/views/State.vue | 41 +++++++++++++-------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/static/terraboard-vuejs/src/views/State.vue b/static/terraboard-vuejs/src/views/State.vue index 0791561c..a851db56 100644 --- a/static/terraboard-vuejs/src/views/State.vue +++ b/static/terraboard-vuejs/src/views/State.vue @@ -83,7 +83,7 @@ id="resFilterInput" class="form-control" type="search" - v-model="resFilter" + v-model="resFilter.value" placeholder="Filter resources..." /> @@ -97,13 +97,13 @@ class="node-name" v-bind:class="{ selected: mod == selectedMod }" > -

{{mod.path ? mod.path : "root"}}{{(this.resFilter == "" ? "" : this.filteredResLength+"/")+mod.resources.length}}{{mod.path ? mod.path : "root"}}