diff --git a/frontend/src/components/enrichment/PathwayList.vue b/frontend/src/components/enrichment/PathwayList.vue index 93052fa5..42a8053d 100644 --- a/frontend/src/components/enrichment/PathwayList.vue +++ b/frontend/src/components/enrichment/PathwayList.vue @@ -86,6 +86,11 @@ export default { selectedIndex: -1 } }, + mounted(){ + this.emitter.on("bookmarkPathway", (value) => { + this.add_enrichment(value) + }); + }, watch:{ terms() { this.filter_options(this.terms) diff --git a/frontend/src/components/enrichment/PathwayMenu.vue b/frontend/src/components/enrichment/PathwayMenu.vue index 88696dbd..056024a4 100644 --- a/frontend/src/components/enrichment/PathwayMenu.vue +++ b/frontend/src/components/enrichment/PathwayMenu.vue @@ -51,6 +51,14 @@ export default { filtered_terms: [] } }, + watch:{ + favourite_pathways: { + handler(newList){ + this.$store.commit('assign_favourite_enrichment', newList) + }, + deep: true + }, + }, mounted() { var com = this com.generatePathways(com.gephi_data.nodes[0].species, com.gephi_data.nodes.map(node => node.attributes["Name"])) diff --git a/frontend/src/components/pane/modules/layer/EnrichmentLayerPane.vue b/frontend/src/components/pane/modules/layer/EnrichmentLayerPane.vue index 01085132..3b0d21bf 100644 --- a/frontend/src/components/pane/modules/layer/EnrichmentLayerPane.vue +++ b/frontend/src/components/pane/modules/layer/EnrichmentLayerPane.vue @@ -16,7 +16,8 @@