diff --git a/projects/pathway-browser/src/app/details/details.component.html b/projects/pathway-browser/src/app/details/details.component.html index c6bffad..72ed7ed 100644 --- a/projects/pathway-browser/src/app/details/details.component.html +++ b/projects/pathway-browser/src/app/details/details.component.html @@ -25,7 +25,7 @@

📋 Reactome Knowledgebase Details

Loading details of {{ state.select() || state.pathwayId() }}

} @else if (obj()) { - + } diff --git a/projects/pathway-browser/src/app/details/tabs/description-tab/description-tab.component.ts b/projects/pathway-browser/src/app/details/tabs/description-tab/description-tab.component.ts index fd5321e..6b4c13d 100644 --- a/projects/pathway-browser/src/app/details/tabs/description-tab/description-tab.component.ts +++ b/projects/pathway-browser/src/app/details/tabs/description-tab/description-tab.component.ts @@ -144,6 +144,7 @@ export class DescriptionTabComponent implements OnDestroy { readonly obj = input.required(); readonly analysisResult = input(); readonly showLocations = input(false); + readonly showReactionDiagram = input(true); static referenceTypeToNameSuffix = new Map([ ["ReferenceMolecule", ""], @@ -325,7 +326,7 @@ export class DescriptionTabComponent implements OnDestroy { label: 'Reaction Diagram', manual: true, template: this.reactionDiagramTemplate$ as Signal>, - isPresent: this.isReaction + isPresent: computed(() => this.isReaction() && this.showReactionDiagram()) }, {key: DataKeys.REFERENCE_ENTITY, label: Labels.EXTERNAL_REFERENCE, manual: true, template: this.referenceTemplate$}, {key: DataKeys.SUMMARISED_ENTITIES, label: Labels.SUMMARISED_ENTITIES}, diff --git a/projects/pathway-browser/src/app/diagram/diagram.component.ts b/projects/pathway-browser/src/app/diagram/diagram.component.ts index a838fa1..c0b33e8 100644 --- a/projects/pathway-browser/src/app/diagram/diagram.component.ts +++ b/projects/pathway-browser/src/app/diagram/diagram.component.ts @@ -678,7 +678,7 @@ export class DiagramComponent implements AfterViewInit, OnDestroy { cy.batch(() => { this.setSubPathwayVisibility(true, cy); cy.elements().removeClass('flag'); - cy.edges('![?color]').style({'underlay-opacity': 0}) + cy.edges().not('[?color]').style({'underlay-opacity': 0}) }) return cy.collection() diff --git a/projects/pathway-browser/src/app/event-hierarchy/event-hierarchy.component.html b/projects/pathway-browser/src/app/event-hierarchy/event-hierarchy.component.html index 77e0125..1c87338 100644 --- a/projects/pathway-browser/src/app/event-hierarchy/event-hierarchy.component.html +++ b/projects/pathway-browser/src/app/event-hierarchy/event-hierarchy.component.html @@ -1,6 +1,6 @@