diff options
author | crupest <crupest@outlook.com> | 2019-03-04 20:41:17 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-04 20:41:17 +0800 |
commit | da5666528de84788671b39156de1382c6f27c853 (patch) | |
tree | c7a8c6f8b70e598355e2b403e00a2271a624fda8 /Timeline/ClientApp/src/app/user-dialog/user-dialog.component.html | |
parent | 1715b3a618ddffc28177e58ae21c91b30d586ccf (diff) | |
download | timeline-da5666528de84788671b39156de1382c6f27c853.tar.gz timeline-da5666528de84788671b39156de1382c6f27c853.tar.bz2 timeline-da5666528de84788671b39156de1382c6f27c853.zip |
...
Diffstat (limited to 'Timeline/ClientApp/src/app/user-dialog/user-dialog.component.html')
-rw-r--r-- | Timeline/ClientApp/src/app/user-dialog/user-dialog.component.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Timeline/ClientApp/src/app/user-dialog/user-dialog.component.html b/Timeline/ClientApp/src/app/user-dialog/user-dialog.component.html index 2c5d1879..5d3829c7 100644 --- a/Timeline/ClientApp/src/app/user-dialog/user-dialog.component.html +++ b/Timeline/ClientApp/src/app/user-dialog/user-dialog.component.html @@ -1,3 +1,12 @@ <div [ngSwitch]="state"> - <app-user-login *ngSwitchCase="'login'"></app-user-login> + <div *ngSwitchCase="'loading'" class="progress-container"> + <mat-progress-spinner mode="indeterminate" diameter="50"></mat-progress-spinner> + </div> + <div *ngSwitchCase="'login'"> + <p *ngIf="loginMessage" class="mat-body">{{ loginMessage }}</p> + <app-user-login (login)="login($event)"></app-user-login> + </div> + <div *ngSwitchCase="'success'"> + <p class="mat-body">You have been login as {{ userInfo.username }}.</p> + </div> </div> |