Skip to content

Commit

Permalink
NN-409 Fixing the hide function of subset pane
Browse files Browse the repository at this point in the history
  • Loading branch information
TripZz committed Dec 4, 2023
1 parent c62b3d5 commit 3f63eba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 3 additions & 7 deletions frontend/src/components/pane/modules/subset/SubsetPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default {
},
data() {
return {
hide: false,
hide: true,
expand_proteins: false,
subset_item: {
value: null,
Expand Down Expand Up @@ -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
},
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/visualization/MainVis.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
});
Expand Down

0 comments on commit 3f63eba

Please sign in to comment.