-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add loading spinner for activity dashboard
- Loading branch information
1 parent
ff83ab0
commit 5fc6267
Showing
2 changed files
with
47 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 41 additions & 35 deletions
76
src/app/activity-dashboard/activity-dashboard.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,46 @@ | ||
<div> | ||
<mat-grid-list cols="4" rowHeight="80px"> | ||
<mat-grid-tile> | ||
<div class="grid-flush-left"> | ||
<h1 class="mat-headline" style="margin: 0px">Activity</h1> | ||
</div> | ||
</mat-grid-tile> | ||
<div class="loading-spinner" *ngIf="this.viewService.isChangingRepo | async; else elseBlock"> | ||
<mat-progress-spinner color="primary" mode="indeterminate" diameter="50" strokeWidth="5"> </mat-progress-spinner> | ||
</div> | ||
|
||
<mat-grid-tile> | ||
<mat-form-field appearance="fill"> | ||
<mat-label>Start Date</mat-label> | ||
<input matInput [min]="startMinDate" [max]="startMaxDate" [matDatepicker]="startPicker" (dateChange)="pickStartDate($event)" /> | ||
<mat-hint>MM/DD/YYYY</mat-hint> | ||
<mat-datepicker-toggle matSuffix [for]="startPicker"></mat-datepicker-toggle> | ||
<mat-datepicker startView="year" #startPicker></mat-datepicker> | ||
</mat-form-field> | ||
</mat-grid-tile> | ||
<ng-template #elseBlock> | ||
<mat-grid-list cols="4" rowHeight="80px"> | ||
<mat-grid-tile> | ||
<div class="grid-flush-left"> | ||
<h1 class="mat-headline" style="margin: 0px">Activity</h1> | ||
</div> | ||
</mat-grid-tile> | ||
|
||
<mat-grid-tile> | ||
<mat-form-field appearance="fill"> | ||
<mat-label>End Date</mat-label> | ||
<input matInput [min]="endMinDate" [max]="endMaxDate" [matDatepicker]="endPicker" (dateChange)="pickEndDate($event)" /> | ||
<mat-hint>MM/DD/YYYY</mat-hint> | ||
<mat-datepicker-toggle matSuffix [for]="endPicker"></mat-datepicker-toggle> | ||
<mat-datepicker startView="year" #endPicker></mat-datepicker> | ||
</mat-form-field> | ||
</mat-grid-tile> | ||
</mat-grid-list> | ||
</div> | ||
<mat-grid-tile> | ||
<mat-form-field appearance="fill"> | ||
<mat-label>Start Date</mat-label> | ||
<input matInput [min]="startMinDate" [max]="startMaxDate" [matDatepicker]="startPicker" (dateChange)="pickStartDate($event)" /> | ||
<mat-hint>MM/DD/YYYY</mat-hint> | ||
<mat-datepicker-toggle matSuffix [for]="startPicker"></mat-datepicker-toggle> | ||
<mat-datepicker startView="year" #startPicker></mat-datepicker> | ||
</mat-form-field> | ||
</mat-grid-tile> | ||
|
||
<mat-grid-tile> | ||
<mat-form-field appearance="fill"> | ||
<mat-label>End Date</mat-label> | ||
<input matInput [min]="endMinDate" [max]="endMaxDate" [matDatepicker]="endPicker" (dateChange)="pickEndDate($event)" /> | ||
<mat-hint>MM/DD/YYYY</mat-hint> | ||
<mat-datepicker-toggle matSuffix [for]="endPicker"></mat-datepicker-toggle> | ||
<mat-datepicker startView="year" #endPicker></mat-datepicker> | ||
</mat-form-field> | ||
</mat-grid-tile> | ||
</mat-grid-list> | ||
|
||
<div class="event-tables-wrapper"> | ||
<app-event-tables | ||
*ngFor="let assignee of assignees" | ||
class="issue-table" | ||
[actor]="assignee" | ||
[columnsToDisplay]="this.displayedColumns" | ||
[expandedColumnsToDisplay]="this.expandedColumns" | ||
[actions]="this.actionButtons" | ||
></app-event-tables> | ||
<div class="event-tables-wrapper"> | ||
<app-event-tables | ||
*ngFor="let assignee of assignees" | ||
class="issue-table" | ||
[actor]="assignee" | ||
[columnsToDisplay]="this.displayedColumns" | ||
[expandedColumnsToDisplay]="this.expandedColumns" | ||
[actions]="this.actionButtons" | ||
></app-event-tables> | ||
</div> | ||
</ng-template> | ||
</div> |