mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
fix: dashboard next unit structural directive causing animation issues
This commit is contained in:
@@ -25,26 +25,28 @@
|
|||||||
<ion-icon size="40" weight="300" name="grid_view"></ion-icon>
|
<ion-icon size="40" weight="300" name="grid_view"></ion-icon>
|
||||||
<ion-label>{{ 'schedule.recurring' | translate }}</ion-label>
|
<ion-label>{{ 'schedule.recurring' | translate }}</ion-label>
|
||||||
</a>
|
</a>
|
||||||
|
<!-- Avoid structural directives here, they might interfere with the collapse animation -->
|
||||||
<a
|
<a
|
||||||
*ngIf="nextEvent && nextEvent.event"
|
[routerLink]="
|
||||||
[routerLink]="['/data-detail', nextEvent.event.uid]"
|
nextEvent?.event
|
||||||
|
? ['/data-detail', nextEvent!.event.uid]
|
||||||
|
: ['/schedule/recurring']
|
||||||
|
"
|
||||||
class="schedule-item-button"
|
class="schedule-item-button"
|
||||||
>
|
>
|
||||||
<ion-label>{{ 'dashboard.schedule.title' | translate }}</ion-label>
|
<ion-label>{{ 'dashboard.schedule.title' | translate }}</ion-label>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
{{ nextEvent.dates | nextDateInList | amDateFormat: 'll, HH:mm' }}
|
{{
|
||||||
{{ 'timeSuffix' | translate }}
|
nextEvent?.event
|
||||||
|
? (nextEvent!.dates | nextDateInList | amDateFormat: 'll, HH:mm')
|
||||||
|
: ('dashboard.schedule.noEvent' | translate)
|
||||||
|
}}
|
||||||
</ion-label>
|
</ion-label>
|
||||||
<ion-label>{{ nextEvent.event.name }}</ion-label>
|
<ion-label>{{
|
||||||
</a>
|
nextEvent?.event
|
||||||
<a
|
? nextEvent!.event.name
|
||||||
*ngIf="!nextEvent || !nextEvent.event"
|
: ('dashboard.schedule.noEventLink' | translate)
|
||||||
[routerLink]="['/schedule/recurring']"
|
}}</ion-label>
|
||||||
class="schedule-item-button"
|
|
||||||
>
|
|
||||||
<ion-label>{{ 'dashboard.schedule.title' | translate }}</ion-label>
|
|
||||||
<ion-label>{{ 'dashboard.schedule.noEvent' | translate }}</ion-label>
|
|
||||||
<ion-label>{{ 'dashboard.schedule.noEventLink' | translate }}</ion-label>
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user