From 3f63eba9eaf9e99e431478e66d56c0a2a877fc78 Mon Sep 17 00:00:00 2001 From: TripZz Date: Mon, 4 Dec 2023 12:48:23 +0100 Subject: [PATCH] NN-409 Fixing the hide function of subset pane --- .../src/components/pane/modules/subset/SubsetPane.vue | 10 +++------- frontend/src/components/visualization/MainVis.vue | 1 - 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/pane/modules/subset/SubsetPane.vue b/frontend/src/components/pane/modules/subset/SubsetPane.vue index caca46ca..d41a7b65 100644 --- a/frontend/src/components/pane/modules/subset/SubsetPane.vue +++ b/frontend/src/components/pane/modules/subset/SubsetPane.vue @@ -48,7 +48,7 @@ export default { }, data() { return { - hide: false, + hide: true, expand_proteins: false, subset_item: { value: null, @@ -117,12 +117,8 @@ export default { show_layer(){ var com = this; - if(com.hide){ - this.emitter.emit("hideSubset", com.active_subset.map(node => node.attributes["Name"])); - } - else{ - this.emitter.emit("hideSubset", {subset: null, mode: this.mode}); - } + var subset_check = this.hide ? com.active_subset.map(node => node.attributes["Name"]) : null + this.emitter.emit("hideSubset", {subset: subset_check, mode: this.mode}); com.hide = !com.hide }, diff --git a/frontend/src/components/visualization/MainVis.vue b/frontend/src/components/visualization/MainVis.vue index 0eaa8ab5..9113ea1e 100644 --- a/frontend/src/components/visualization/MainVis.vue +++ b/frontend/src/components/visualization/MainVis.vue @@ -1052,7 +1052,6 @@ export default { }); this.emitter.on("hideSubset", (state) => { - console.log(state) if(state.mode=="protein") this.$emit('active_layer_changed', state.subset) });