Skip to content

Commit e94de71

Browse files
committed
fix: Removed reaction diagram from the pathbrowser details tab
1 parent 34a5574 commit e94de71

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

projects/pathway-browser/src/app/details/details.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h3> 📋 Reactome Knowledgebase Details </h3>
2525
<p>Loading details of {{ state.select() || state.pathwayId() }}</p>
2626
</div>
2727
} @else if (obj()) {
28-
<cr-description-tab [obj]="obj()!" [analysisResult]="analysis.result()"></cr-description-tab>
28+
<cr-description-tab [obj]="obj()!" [analysisResult]="analysis.result()" [showReactionDiagram]="false"></cr-description-tab>
2929
}
3030
</ng-template>
3131
</mat-tab>

projects/pathway-browser/src/app/details/tabs/description-tab/description-tab.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export class DescriptionTabComponent implements OnDestroy {
144144
readonly obj = input.required<SelectableObject>();
145145
readonly analysisResult = input<Analysis.Result>();
146146
readonly showLocations = input(false);
147+
readonly showReactionDiagram = input(true);
147148

148149
static referenceTypeToNameSuffix = new Map<string, string>([
149150
["ReferenceMolecule", ""],
@@ -325,7 +326,7 @@ export class DescriptionTabComponent implements OnDestroy {
325326
label: 'Reaction Diagram',
326327
manual: true,
327328
template: this.reactionDiagramTemplate$ as Signal<TemplateRef<any>>,
328-
isPresent: this.isReaction
329+
isPresent: computed(() => this.isReaction() && this.showReactionDiagram())
329330
},
330331
{key: DataKeys.REFERENCE_ENTITY, label: Labels.EXTERNAL_REFERENCE, manual: true, template: this.referenceTemplate$},
331332
{key: DataKeys.SUMMARISED_ENTITIES, label: Labels.SUMMARISED_ENTITIES},

0 commit comments

Comments
 (0)