Fix loading indicator on team planner

pull/9939/head
Oliver Günther 3 years ago
parent 966e7013f6
commit 8b55df05de
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 4
      frontend/src/app/features/team-planner/team-planner/page/team-planner-page.component.ts
  2. 31
      frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.html

@ -77,10 +77,6 @@ export class TeamPlannerPageComponent extends PartitionedQuerySpacePageComponent
);
}
protected set loadingIndicator(promise:Promise<unknown>) {
this.loadingIndicatorService.indicator('calendar-entry').promise = promise;
}
/**
* We need to set the current partition to the grid to ensure
* either side gets expanded to full width if we're not in '-split' mode.

@ -1,17 +1,14 @@
<div class="op-team-planner loading-indicator--location"
[attr.data-indicator-name]="'table'">
<ng-container
*ngIf="(calendarOptions$ | async) as calendarOptions"
>
<full-calendar
#ucCalendar
*ngIf="calendarOptions"
[options]="calendarOptions"
></full-calendar>
</ng-container>
<ng-template #resourceContent let-resource="resource">
<op-principal
[principal]="resource.extendedProps.user"
></op-principal>
</ng-template>
</div>
<ng-container
*ngIf="(calendarOptions$ | async) as calendarOptions"
>
<full-calendar
#ucCalendar
*ngIf="calendarOptions"
[options]="calendarOptions"
></full-calendar>
</ng-container>
<ng-template #resourceContent let-resource="resource">
<op-principal
[principal]="resource.extendedProps.user"
></op-principal>
</ng-template>

Loading…
Cancel
Save