mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-23 01:53:00 +00:00
32 lines
953 B
HTML
32 lines
953 B
HTML
<stapps-section
|
|
[title]="'dashboard.favorites.title' | translate"
|
|
[isEditable]="true"
|
|
(onEdit)="onSectionEdit()"
|
|
>
|
|
<div *ngIf="(items | async)?.length" class="container">
|
|
<div
|
|
*ngFor="let item of items | async"
|
|
class="card clickable"
|
|
(click)="notifySelect(item)"
|
|
>
|
|
<ion-thumbnail class="ion-margin-end">
|
|
<ion-icon color="dark" [attr.name]="item.type | dataIcon"></ion-icon>
|
|
</ion-thumbnail>
|
|
<ion-label>
|
|
{{ 'name' | thingTranslate: item }}
|
|
</ion-label>
|
|
</div>
|
|
</div>
|
|
<ng-container *ngIf="!(items | async)?.length">
|
|
<div class="card">
|
|
<ion-label>
|
|
{{ 'dashboard.favorites.no_favorite_prefix' | translate }}
|
|
<a (click)="onSectionEdit()">{{
|
|
'dashboard.favorites.no_favorite_link' | translate
|
|
}}</a>
|
|
{{ 'dashboard.favorites.no_favorite_suffix' | translate }}
|
|
</ion-label>
|
|
</div>
|
|
</ng-container>
|
|
</stapps-section>
|