<ion-item button class="ion-text-wrap" (click)="action('download')" *ngIf="downloadCourseEnabled">
    <ion-icon *ngIf="!prefetch.loading" [name]="prefetch.icon" slot="start" aria-hidden="true"></ion-icon>
    <ion-spinner *ngIf="prefetch.loading" slot="start"></ion-spinner>
    <ion-label><h2>{{ prefetch.statusTranslatable | translate }}</h2></ion-label>
</ion-item>
<ion-item button class="ion-text-wrap" (click)="action('delete')" *ngIf="prefetch.status == 'downloaded' || prefetch.status == 'outdated'">
    <ion-icon name="fas-trash" slot="start" aria-hidden="true"></ion-icon>
    <ion-label><h2>{{ 'addon.storagemanager.deletecourse' | translate }}</h2></ion-label>
</ion-item>
<ion-item button class="ion-text-wrap" (click)="action('hide')" *ngIf="!course.hidden">
    <ion-icon name="fas-eye" slot="start" aria-hidden="true"></ion-icon>
    <ion-label><h2>{{ 'core.courses.hidecourse' | translate }}</h2></ion-label>
</ion-item>
<ion-item button class="ion-text-wrap" (click)="action('show')" *ngIf="course.hidden">
    <ion-icon name="fas-eye-slash" slot="start" aria-hidden="true"></ion-icon>
    <ion-label><h2>{{ 'core.courses.show' | translate }}</h2></ion-label>
</ion-item>
<ion-item button class="ion-text-wrap" (click)="action('favourite')" *ngIf="!course.isfavourite">
    <ion-icon name="fas-star" slot="start" aria-hidden="true"></ion-icon>
    <ion-label><h2>{{ 'core.courses.addtofavourites' | translate }}</h2></ion-label>
</ion-item>
<ion-item button class="ion-text-wrap" (click)="action('unfavourite')" *ngIf="course.isfavourite">
    <ion-icon name="far-star" slot="start" aria-hidden="true"></ion-icon>
    <ion-label><h2>{{ 'core.courses.removefromfavourites' | translate }}</h2></ion-label>
</ion-item>
