Skip to content

Commit

Permalink
NN-434 Enable parameter selection for subset
Browse files Browse the repository at this point in the history
  • Loading branch information
TripZz committed Jan 12, 2024
1 parent 61ca87f commit 2501247
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
12 changes: 10 additions & 2 deletions frontend/src/components/pane/modules/subset/SubsetPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<div class="subsection-header">
<span>contained proteins</span>
<img src="@/assets/pane/copy.png" v-on:click="copyclipboard()">
<img id="subset" src="@/assets/toolbar/expand.png" v-on:click="select_subset(subset)">
</div>
<div class="subsection-main colortype">
<SubsetConnections
Expand Down Expand Up @@ -75,8 +76,6 @@ export default {
}
com.subset = com.active_subset.selection ? com.active_subset.genes: com.active_subset
// if (com.active_subset.selection) com.subset = com.active_subset.genes
// else com.subset = com.active_subset
com.subset_item.value = com.subset
Expand Down Expand Up @@ -134,6 +133,10 @@ export default {
*/
select_node(value) {
this.emitter.emit("searchNode", {node: value, mode: this.mode});
},
select_subset (nodes){
this.emitter.emit("searchSubset", {subset:nodes, mode:this.mode});
}
},
}
Expand Down Expand Up @@ -161,4 +164,9 @@ export default {
#subset-connections {
height: 40%;
}
#subset {
right:-10%;
}
</style>
7 changes: 5 additions & 2 deletions frontend/src/components/toolbar/modules/SelectionList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ export default {
},
watch: {
active_subset(){
if(!this.active_subset) {
this.unactive_proteinlist()
return
}
if(!this.active_subset.selection) this.unactive_proteinlist()
},
active_term(){
Expand Down Expand Up @@ -254,7 +258,6 @@ export default {
var com = this
var dataForm = com.search_data;
console.log(dataForm)
// filter hubs
var finalNodes = [];
var nodes = [];
Expand All @@ -277,7 +280,7 @@ export default {
},
unactive_proteinlist(){
this.$emit("selection_active_changed", false);
this.emitter.emit("searchSubset", {subset:this.search_data, mode:this.mode});
// if(this.active_subset) this.emitter.emit("searchSubset", {subset:this.search_data, mode:this.mode});
},
valueChanged(id){
var target = document.getElementById(id)
Expand Down

0 comments on commit 2501247

Please sign in to comment.