Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}
</div>
<div class="file-preview d-none d-lg-block col-lg-9">
@if (selectedFile && isAssetAvailable) {
@if (selectedFile && isAssetAvailable && !embargoedFile) {
<div>
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
</div>
Expand All @@ -48,6 +48,10 @@
<div class="no-preview">
<span>OCURRIÓ UN ERROR INESPERADO: PREVISUALIZACIÓN NO DISPONIBLE</span>
</div>
} @else if (embargoedFile) {
<div class="no-preview">
<span>ARCHIVO EMBARGADO</span>
</div>
} @else {
<div class="no-preview">
<span>NO HAY ARCHIVO/S CON PREVISUALIZACIÓN DISPONIBLE</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ export class ContentFilesComponent {
}
this.isLoading = false;
});
} else {
this.embargoedFile = true;
}
this.isLoading = false;
this.cdr.detectChanges();
Expand Down
Loading