Fixes a bug where files are not known as files
This is a regression from model change. The is_file method is missing. Replaces is_file with !is_directory
This commit is contained in:
parent
be2e8d9584
commit
d482f205cd
@ -93,7 +93,7 @@
|
|||||||
>
|
>
|
||||||
<!-- Icon column -->
|
<!-- Icon column -->
|
||||||
<div *pblNgridCellDef="'icon'; row as mediafile" class="fill clickable">
|
<div *pblNgridCellDef="'icon'; row as mediafile" class="fill clickable">
|
||||||
<a class="detail-link" target="_blank" [routerLink]="mediafile.url" *ngIf="mediafile.is_file && !isMultiSelect">
|
<a class="detail-link" target="_blank" [routerLink]="mediafile.url" *ngIf="!mediafile.is_directory && !isMultiSelect">
|
||||||
</a>
|
</a>
|
||||||
<a class="detail-link" (click)="changeDirectory(mediafile.id)" *ngIf="mediafile.is_directory && !isMultiSelect">
|
<a class="detail-link" (click)="changeDirectory(mediafile.id)" *ngIf="mediafile.is_directory && !isMultiSelect">
|
||||||
</a>
|
</a>
|
||||||
@ -102,7 +102,7 @@
|
|||||||
|
|
||||||
<!-- Title column -->
|
<!-- Title column -->
|
||||||
<div *pblNgridCellDef="'title'; row as mediafile" class="fill clickable">
|
<div *pblNgridCellDef="'title'; row as mediafile" class="fill clickable">
|
||||||
<a class="detail-link" target="_blank" [routerLink]="mediafile.url" *ngIf="mediafile.is_file && !isMultiSelect">
|
<a class="detail-link" target="_blank" [routerLink]="mediafile.url" *ngIf="!mediafile.is_directory && !isMultiSelect">
|
||||||
</a>
|
</a>
|
||||||
<a class="detail-link" (click)="changeDirectory(mediafile.id)" *ngIf="mediafile.is_directory && !isMultiSelect">
|
<a class="detail-link" (click)="changeDirectory(mediafile.id)" *ngIf="mediafile.is_directory && !isMultiSelect">
|
||||||
</a>
|
</a>
|
||||||
@ -110,7 +110,7 @@
|
|||||||
<div class="file-title ellipsis-overflow">
|
<div class="file-title ellipsis-overflow">
|
||||||
{{ mediafile.filename }}
|
{{ mediafile.filename }}
|
||||||
</div>
|
</div>
|
||||||
<div class="info-text" *ngIf="mediafile.is_file">
|
<div class="info-text" *ngIf="!mediafile.is_directory">
|
||||||
<span> {{ getDateFromTimestamp(mediafile.timestamp) }} · {{ mediafile.size }} </span>
|
<span> {{ getDateFromTimestamp(mediafile.timestamp) }} · {{ mediafile.size }} </span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user