2020-11-12 12:10:51 +01:00
|
|
|
<ion-item *ngIf="file" button class="ion-text-wrap item-file" (click)="download($event, true)" detail="false">
|
2020-11-03 09:37:08 +01:00
|
|
|
<ion-thumbnail slot="start">
|
|
|
|
<img [src]="fileIcon" alt="" role="presentation" />
|
|
|
|
</ion-thumbnail>
|
|
|
|
<ion-label>
|
2021-05-20 09:56:54 +02:00
|
|
|
<p class="item-heading">{{fileName}}</p>
|
2020-11-03 09:37:08 +01:00
|
|
|
<p *ngIf="fileSizeReadable">{{ fileSizeReadable }}</p>
|
|
|
|
<p *ngIf="showTime">{{ timemodified * 1000 | coreFormatDate }}</p>
|
|
|
|
</ion-label>
|
2021-05-25 11:01:23 +02:00
|
|
|
<div slot="end" class="flex-row">
|
2021-12-01 15:55:25 +01:00
|
|
|
<core-download-refresh [status]="state" [enabled]="canDownload" [loading]="isDownloading" [canTrustDownload]="!alwaysDownload"
|
2022-02-08 12:06:48 +01:00
|
|
|
(action)="download()">
|
2020-11-03 09:37:08 +01:00
|
|
|
</core-download-refresh>
|
|
|
|
|
2022-03-02 16:24:44 +01:00
|
|
|
<ion-button fill="clear" *ngIf="isDownloaded && isIOS" (click)="openFile($event, true)" [title]="openButtonLabel | translate">
|
2021-05-25 11:01:23 +02:00
|
|
|
<ion-icon slot="icon-only" [name]="openButtonIcon" aria-hidden="true"></ion-icon>
|
|
|
|
</ion-button>
|
|
|
|
|
2021-12-01 15:55:25 +01:00
|
|
|
<ion-button fill="clear" *ngIf="!isDownloading && canDelete" (click)="delete($event)" [attr.aria-label]="'core.delete' | translate"
|
2022-02-08 12:06:48 +01:00
|
|
|
color="danger">
|
2021-04-27 13:14:31 +02:00
|
|
|
<ion-icon slot="icon-only" name="fas-trash" aria-hidden="true"></ion-icon>
|
2020-11-03 09:37:08 +01:00
|
|
|
</ion-button>
|
|
|
|
</div>
|
|
|
|
</ion-item>
|