Skip to content
Snippets Groups Projects
Unverified Commit 30e54ab0 authored by Gaëlle Fournier's avatar Gaëlle Fournier Committed by GitHub
Browse files

[CEA] Fix consultation journal des opérations de type vide (#330)


* TULEAP 24204: Fix logbook header style

Co-authored-by: default avatarbenemart <benedicte.martinez@cea.fr>

* TULEAP 24204: Logbooks - Fix tenant check

Co-authored-by: default avatarbenemart <benedicte.martinez@cea.fr>

Co-authored-by: default avatarMaël QUAISSARD <mael.quaissard@smile.fr>
Co-authored-by: default avatarbenemart <benedicte.martinez@cea.fr>
parent 4594f5dd
No related branches found
No related tags found
2 merge requests!51Merge mis a jour vitam-ui,!25Nouveau mis a jour Vitamui
......@@ -7,14 +7,17 @@
<div class="header-container">
<div class="title">
<div class="status-badge-mini" [ngClass]="event | eventTypeBadgeClass">
<span class="status-badge-mini" [ngClass]="event | eventTypeBadgeClass">
<i class="vitamui-icon vitamui-icon-logbook-operations vitamui-row-icon status-badge"></i>
</div>
</span>
<h2>{{ event?.id }}</h2>
</div>
<ng-container *ngIf="!hideDownload || canDownload">
<button mat-button class="btn btn-primary button-maring" (click)="downloadReports()" [disabled]="couldDownload && !canDownload">Télécharger le rapport</button>
</ng-container>
<button mat-button class="btn btn-primary button-maring"
*ngIf="!hideDownload || canDownload"
(click)="downloadReports()"
[disabled]="couldDownload && !canDownload">
Télécharger le rapport
</button>
</div>
</div>
<div class="vitamui-sidepanel-body">
......
......@@ -93,7 +93,7 @@ export class LogbookOperationDetailComponent implements OnInit, OnChanges {
downloadReports() {
if (!this.tenantIdentifier || !this.eventId) {
if (this.tenantIdentifier === null || this.tenantIdentifier === undefined || !this.eventId) {
return;
}
......@@ -119,7 +119,7 @@ export class LogbookOperationDetailComponent implements OnInit, OnChanges {
}
private refreshEvents() {
if (!this.tenantIdentifier || !this.eventId) {
if (this.tenantIdentifier === null || this.tenantIdentifier === undefined || !this.eventId) {
return;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment