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

Merge branch 'master' of gitlab.lrz.de:netex/frontend

parents 0d7f63e3 b02883e9
No related branches found
No related tags found
No related merge requests found
...@@ -651,7 +651,10 @@ ...@@ -651,7 +651,10 @@
[ngClass]="{ 'text-normal': 'smallStyle' }" [ngClass]="{ 'text-normal': 'smallStyle' }"
> >
<div class="card-content overflow"> <div class="card-content overflow">
<table class="table selection-table" *ngIf="analysis.getCount() > 0"> <table
class="table selection-table"
*ngIf="analysis.getCount() > 0"
>
<thead> <thead>
<tr> <tr>
<td>Label</td> <td>Label</td>
...@@ -663,13 +666,31 @@ ...@@ -663,13 +666,31 @@
</thead> </thead>
<tbody> <tbody>
<tr *ngFor="let p of analysis.getSelection()"> <tr *ngFor="let p of analysis.getSelection()">
<td><p class="is-capitalized">{{p.data.label}}</p></td>
<td><p>{{myConfig.nodeGroups[p.data.group]['groupName']}}</p></td>
<td *ngIf="myConfig.identifier !== 'symbol'"><p>{{p.data.symbol}}</p></td>
<td *ngIf="myConfig.identifier !== 'uniprot'"><p>{{p.data.uniprotAc}}</p></td>
<td> <td>
<button (click)="analysis.removeItems([p])" class="button is-small is-danger is-outlined has-tooltip" <p class="is-capitalized">{{ p.data.label }}</p>
tooltipPosition="top" pTooltip="Remove from selection."> </td>
<td>
<p>
{{ myConfig.nodeGroups[p.data.group]["groupName"] }}
</p>
</td>
<td *ngIf="myConfig.identifier !== 'symbol'">
<p>{{ p.data.symbol }}</p>
</td>
<td *ngIf="myConfig.identifier !== 'uniprot'">
<p>{{ p.data.uniprotAc }}</p>
</td>
<td>
<button
(click)="analysis.removeItems([p])"
class="
button
is-small is-danger is-outlined
has-tooltip
"
tooltipPosition="top"
pTooltip="Remove from selection."
>
<i class="fa fa-trash"></i> <i class="fa fa-trash"></i>
</button> </button>
</td> </td>
...@@ -726,8 +747,8 @@ ...@@ -726,8 +747,8 @@
</a> </a>
</footer> --> </footer> -->
<!-- <footer class="card-footer"> <footer class="card-footer">
<a (click)="analysis.invertSelection(currentViewNodes)" class="card-footer-item text-primary" <!-- <a (click)="analysis.invertSelection(currentViewNodes)" class="card-footer-item text-primary"
tooltipPosition="top" pTooltip="Invert the current selection."> tooltipPosition="top" pTooltip="Invert the current selection.">
<span class="icon"> <span class="icon">
<i class="fa fa-sync"></i> <i class="fa fa-sync"></i>
...@@ -735,17 +756,20 @@ ...@@ -735,17 +756,20 @@
<span> <span>
Invert Invert
</span> </span>
</a> </a> -->
<a (click)="analysis.resetSelection()" class="card-footer-item text-danger" <a
tooltipPosition="top" pTooltip="Remove all entries from the selection."> *ngIf="analysis.getSelection().length"
(click)="analysis.resetSelection()"
class="card-footer-item text-danger"
tooltipPosition="top"
pTooltip="Remove all entries from the selection."
>
<span class="icon"> <span class="icon">
<i class="fa fa-broom"></i> <i class="fa fa-broom"></i>
</span> </span>
<span> <span> Reset </span>
Reset
</span>
</a> </a>
</footer> --> </footer>
<!-- </div> --> <!-- </div> -->
<!-- </div> --> <!-- </div> -->
......
...@@ -209,8 +209,8 @@ export class AnalysisService { ...@@ -209,8 +209,8 @@ export class AnalysisService {
}*/ }*/
resetSelection() { resetSelection() {
this.selectListSubject.next({items: Array.from(this.selectedItems.values()), selected: false});
this.selectedItems.clear(); this.selectedItems.clear();
this.selectListSubject.next({items: [], selected: null});
} }
idInSelection(nodeId: string): boolean { idInSelection(nodeId: string): boolean {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment