Skip to content
Snippets Groups Projects
Commit 3e5afbf3 authored by AndiMajore's avatar AndiMajore
Browse files

adjusted view icon; hides seed button on view

parent f9dd5ba9
No related branches found
No related tags found
No related merge requests found
......@@ -76,19 +76,6 @@ export class AnalysisPanelComponent implements OnInit, OnChanges, AfterViewInit
// private drugEdges: any[] = [];
public tab: 'meta' | 'network' | 'table' = 'network';
// public adjacentDrugs = false;
// public adjacentDrugList: Node[] = [];
// public adjacentDrugEdgesList: Node[] = [];
//
// public adjacentDisordersProtein = false;
// public adjacentDisordersDrug = false;
//
// public adjacentProteinDisorderList: Node[] = [];
// public adjacentProteinDisorderEdgesList: Node[] = [];
//
// public adjacentDrugDisorderList: Node[] = [];
// public adjacentDrugDisorderEdgesList: Node[] = [];
private proteins: any;
public effects: any;
......@@ -630,8 +617,10 @@ export class AnalysisPanelComponent implements OnInit, OnChanges, AfterViewInit
private async refresh() {
if (this.token) {
if (this.tokenType === 'view') {
this.networkHandler.showSeedsButton = false;
await this.refreshView();
} else {
this.networkHandler.showSeedsButton = true;
await this.refreshTask();
}
}
......
......@@ -20,7 +20,7 @@
<div class="rows">
<div
class="row is-full m-1 is-pulled-right"
*ngIf="networkHandler.activeNetwork.networkType === 'analysis'"
*ngIf="networkHandler.activeNetwork.networkType === 'analysis' && networkHandler.showSeedsButton"
>
<app-toggle-inplace-reversed
class="network-footer-toolbar-element"
......
......@@ -20,7 +20,7 @@
<div class="rows">
<div
class="row is-full m-1"
*ngIf="networkHandler.activeNetwork.networkType === 'analysis'"
*ngIf="networkHandler.activeNetwork.networkType === 'analysis' && networkHandler.showSeedsButton"
>
<app-toggle-inplace
class="network-footer-toolbar-element"
......
......@@ -509,7 +509,7 @@
[ngClass]="{ 'b-text-small': drugstoneConfig.smallStyle }"
>
<p class="card-header-title">
<app-fa-solid-icon icon="tasks"></app-fa-solid-icon>
<app-fa-solid-icon icon="eye"></app-fa-solid-icon>
Views ({{ analysis.viewTokens != null ? analysis.viewTokens.length : 0 }})
</p>
<a
......
......@@ -22,6 +22,9 @@ export class NetworkHandlerService {
public networks: { NetworkType: NetworkComponent } | {} = {};
public activeNetwork: NetworkComponent = new NetworkComponent(this.legendService, this.networkHandler, this.analysis, this.drugstoneConfig, this.netex, this.omnipath, this.loadingScreen);
public showSeedsButton = true;
public setActiveNetwork(network: NetworkType) {
this.triggerChange();
this.activeNetwork = this.networks[network];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment