Skip to content

Commit

Permalink
fix(obs) adding a non link when no profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Narcisi authored and jacquesfize committed Jan 26, 2024
1 parent a3bde03 commit f102b93
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,27 @@ <h4 class="mr-auto gn-color">
class="no-link-style"
ngbTooltip="{{ 'Synthese.GnRecord' | translate }}"
placement="bottom"
*ngIf="selectedObsTaxonDetail && config.FRONTEND['ENABLE_PROFILES']"
[routerLink]="['/synthese/taxon', selectedObsTaxonDetail?.cd_ref]"
target="_blank"
>
*ngIf="selectedObsTaxonDetail && config.FRONTEND['ENABLE_PROFILES']; else notLink"
>
<span *ngIf="selectedObsTaxonDetail?.nom_vern">
{{ selectedObsTaxonDetail?.nom_vern }} -
</span>
{{ selectedObsTaxonDetail?.nom_valide }}
</a>
<ng-template #notLink>
<div
class="no-link-style"
placement="bottom"
*ngIf="selectedObsTaxonDetail"
>
<span *ngIf="selectedObsTaxonDetail?.nom_vern">
{{ selectedObsTaxonDetail?.nom_vern }} -
</span>
{{ selectedObsTaxonDetail?.nom_valide }}
</div>
</ng-template>
</h4>
<div>
<mat-toolbar class="action-tbar">
Expand Down

0 comments on commit f102b93

Please sign in to comment.