Merge pull request #9939 from opf/fix/team-planner-loading-indicator

Fix loading indicator on team planner
pull/9944/head
Henriette Darge 3 years ago committed by GitHub
commit 5cc506e783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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