MOBILE-3320 ui: Fix ion-label warnings

main
Dani Palou 2021-07-07 08:23:11 +02:00
parent bf5629e075
commit d24600cbec
2 changed files with 10 additions and 9 deletions

View File

@ -164,8 +164,9 @@
<ion-radio slot="end" [value]="1"></ion-radio>
</ion-item>
<ion-item>
<ion-label position="stacked"></ion-label>
<ion-datetime formControlName="timedurationuntil" [max]="maxDate" [min]="minDate"
[placeholder]="'addon.calendar.durationuntil' | translate" slot="end"
[placeholder]="'addon.calendar.durationuntil' | translate"
[displayFormat]="dateFormat" [disabled]="form.controls.duration.value != 1"
display-timezone="utc">
</ion-datetime>

View File

@ -13,15 +13,15 @@
[detail]="!countError && commentsLoaded"
(click)="openComments($event)"
[disabled]="countError">
<core-loading [hideUntil]="commentsLoaded" [fullscreen]="false">
<ion-label>
<p *ngIf="!countError" class="item-heading">
{{ 'core.comments.commentscount' | translate : {'$a': commentsCount} }}
</p>
<p *ngIf="countError">
{{ 'core.comments.commentsnotworking' | translate }}
</p>
<core-loading [hideUntil]="commentsLoaded" [fullscreen]="false">
<p *ngIf="!countError" class="item-heading">
{{ 'core.comments.commentscount' | translate : {'$a': commentsCount} }}
</p>
<p *ngIf="countError">
{{ 'core.comments.commentsnotworking' | translate }}
</p>
</core-loading>
</ion-label>
</core-loading>
</ion-item>
</ng-container>