Skip to content
Snippets Groups Projects
Commit 962d9969 authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

Gestion des valeurs nulles => DONE

parent cfbbd5a7
No related branches found
No related tags found
2 merge requests!68Develop,!34Gestion des valeurs nulles => DONE
......@@ -24,7 +24,7 @@
<tbody>
<tr *ngFor="let datum of searchData">
<td *ngFor="let attribute of searchMeta.attributes_selected">
<div [ngSwitch]="getAttributeRenderer(attribute.name)">
<div *ngIf="datum[attribute.label]" [ngSwitch]="getAttributeRenderer(attribute.name)">
<div *ngSwitchCase="'img'">
<img [src]="getAttributeUriAction(attribute.name, datum[attribute.label])">
</div>
......@@ -52,7 +52,6 @@
</div>
<div *ngSwitchCase="'download'">
<a [href]="getAttributeUriAction(attribute.name, datum[attribute.label])"
download="getAttributeUriAction(attribute.name, datum[attribute.label])"
class="btn btn-outline-primary btn-sm">
<i class="fa fa-download" aria-hidden="true"></i>
</a>
......@@ -77,9 +76,6 @@
</accordion-group>
</accordion>
<app-modal *ngIf="modalData.isOpen"
[bsModalRef]="bsModalRef"
[type]="modalData.type"
[data]="modalData.data"
<app-modal *ngIf="modalData.isOpen" [bsModalRef]="bsModalRef" [type]="modalData.type" [data]="modalData.data"
(closeEvent)="closeModal($event)">
</app-modal>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment