MOBILE-3021 calendar: Don't show "There are no events" while loading data
parent
e0e7a9ba91
commit
39b9d1700d
|
@ -38,37 +38,39 @@
|
||||||
</ion-row>
|
</ion-row>
|
||||||
</ion-grid>
|
</ion-grid>
|
||||||
|
|
||||||
<!-- There is data to be synchronized -->
|
<core-loading [hideUntil]="loaded">
|
||||||
<ion-card class="core-warning-card" icon-start *ngIf="hasOffline">
|
<!-- There is data to be synchronized -->
|
||||||
<ion-icon name="warning"></ion-icon> {{ 'core.hasdatatosync' | translate:{$a: 'core.day' | translate} }}
|
<ion-card class="core-warning-card" icon-start *ngIf="hasOffline">
|
||||||
</ion-card>
|
<ion-icon name="warning"></ion-icon> {{ 'core.hasdatatosync' | translate:{$a: 'core.day' | translate} }}
|
||||||
|
</ion-card>
|
||||||
|
|
||||||
<core-empty-box *ngIf="!filteredEvents || !filteredEvents.length" icon="calendar" [message]="'addon.calendar.noevents' | translate">
|
<core-empty-box *ngIf="!filteredEvents || !filteredEvents.length" icon="calendar" [message]="'addon.calendar.noevents' | translate">
|
||||||
</core-empty-box>
|
</core-empty-box>
|
||||||
|
|
||||||
<ion-list *ngIf="filteredEvents && filteredEvents.length" no-margin>
|
<ion-list *ngIf="filteredEvents && filteredEvents.length" no-margin>
|
||||||
<ng-container *ngFor="let event of filteredEvents">
|
<ng-container *ngFor="let event of filteredEvents">
|
||||||
<a ion-item text-wrap [title]="event.name" (click)="gotoEvent(event.id)" [class.core-split-item-selected]="event.id == eventId">
|
<a ion-item text-wrap [title]="event.name" (click)="gotoEvent(event.id)">
|
||||||
<img *ngIf="event.moduleIcon" src="{{event.moduleIcon}}" item-start class="core-module-icon">
|
<img *ngIf="event.moduleIcon" src="{{event.moduleIcon}}" item-start class="core-module-icon">
|
||||||
<core-icon *ngIf="event.icon && !event.moduleIcon" [name]="event.icon" item-start></core-icon>
|
<core-icon *ngIf="event.icon && !event.moduleIcon" [name]="event.icon" item-start></core-icon>
|
||||||
<h2><core-format-text [text]="event.name"></core-format-text></h2>
|
<h2><core-format-text [text]="event.name"></core-format-text></h2>
|
||||||
<p><core-format-text [text]="event.formattedtime"></core-format-text></p>
|
<p><core-format-text [text]="event.formattedtime"></core-format-text></p>
|
||||||
<ion-note *ngIf="event.offline && !event.deleted" item-end>
|
<ion-note *ngIf="event.offline && !event.deleted" item-end>
|
||||||
<ion-icon name="time"></ion-icon>
|
<ion-icon name="time"></ion-icon>
|
||||||
<span text-wrap>{{ 'core.notsent' | translate }}</span>
|
<span text-wrap>{{ 'core.notsent' | translate }}</span>
|
||||||
</ion-note>
|
</ion-note>
|
||||||
<ion-note *ngIf="event.deleted" item-end>
|
<ion-note *ngIf="event.deleted" item-end>
|
||||||
<ion-icon name="trash"></ion-icon>
|
<ion-icon name="trash"></ion-icon>
|
||||||
<span text-wrap>{{ 'core.deletedoffline' | translate }}</span>
|
<span text-wrap>{{ 'core.deletedoffline' | translate }}</span>
|
||||||
</ion-note>
|
</ion-note>
|
||||||
</a>
|
</a>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|
||||||
<!-- Create a calendar event. -->
|
<!-- Create a calendar event. -->
|
||||||
<ion-fab core-fab bottom end *ngIf="canCreate">
|
<ion-fab core-fab bottom end *ngIf="canCreate">
|
||||||
<button ion-fab (click)="openEdit()" [attr.aria-label]="'addon.calendar.newevent' | translate">
|
<button ion-fab (click)="openEdit()" [attr.aria-label]="'addon.calendar.newevent' | translate">
|
||||||
<ion-icon name="add"></ion-icon>
|
<ion-icon name="add"></ion-icon>
|
||||||
</button>
|
</button>
|
||||||
</ion-fab>
|
</ion-fab>
|
||||||
|
</core-loading>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
Loading…
Reference in New Issue