Skip to content

Commit 02a990c

Browse files
committed
Angular NgRx Course
1 parent 68297f1 commit 02a990c

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

src/app/courses/course/course.component.css

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@
2626
font-size: 20px;
2727
}
2828

29-
.spinner-container {
30-
height: 340px;
31-
width: 390px;
32-
position: fixed;
33-
background: white;
34-
margin-top: 70px;
35-
z-index: 1;
36-
}
37-
3829
.lessons-table {
3930
min-height: 360px;
4031
margin-top: 10px;

src/app/courses/edit-course-dialog/edit-course-dialog.component.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ <h2 mat-dialog-title>{{dialogTitle}}</h2>
55

66
<ng-container *ngIf="form">
77

8+
<div class="spinner-container" *ngIf="loading$ | async">
9+
10+
<mat-spinner></mat-spinner>
11+
12+
</div>
13+
814
<ng-container [formGroup]="form">
915

1016
<mat-form-field>

src/styles.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,16 @@ $theme: mat-light-theme($primary, $accent);
4949

5050
// Include all theme styles for the components.
5151
@include angular-material-theme($theme);
52+
53+
54+
.spinner-container {
55+
position: fixed;
56+
height: 334px;
57+
width: 360px;
58+
display: flex;
59+
background: white;
60+
margin-top: 70px;
61+
z-index: 1;
62+
opacity: 0.5;
63+
justify-content: center;
64+
}

0 commit comments

Comments
 (0)