diff options
| author | crupest <crupest@outlook.com> | 2019-03-06 17:36:57 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2019-03-06 17:36:57 +0800 |
| commit | 49b12399715de59cd051352101bd997ff2052177 (patch) | |
| tree | 4722a4963be454d35bab5a67ab0b6cccf300b73c /Timeline/ClientApp/src/app/user-login/user-login.component.html | |
| parent | b7ce3f7139798a734905b6df7530feb8c5d0c373 (diff) | |
| download | timeline-49b12399715de59cd051352101bd997ff2052177.tar.gz timeline-49b12399715de59cd051352101bd997ff2052177.tar.bz2 timeline-49b12399715de59cd051352101bd997ff2052177.zip | |
Move login message into user login component.
Diffstat (limited to 'Timeline/ClientApp/src/app/user-login/user-login.component.html')
| -rw-r--r-- | Timeline/ClientApp/src/app/user-login/user-login.component.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Timeline/ClientApp/src/app/user-login/user-login.component.html b/Timeline/ClientApp/src/app/user-login/user-login.component.html index 6fed6bb5..b1dd289d 100644 --- a/Timeline/ClientApp/src/app/user-login/user-login.component.html +++ b/Timeline/ClientApp/src/app/user-login/user-login.component.html @@ -1,4 +1,9 @@ <form [formGroup]="form"> + <ng-container *ngIf="message" [ngSwitch]="message"> + <p *ngSwitchCase="'nologin'" class="mat-body no-login-message">You haven't login.</p> + <p *ngSwitchCase="'invalidlogin'" class="mat-body invalid-login-message">Your login is no longer valid.</p> + <p *ngSwitchDefault class="mat-body error-message">{{ message }}</p> + </ng-container> <mat-form-field> <mat-label>Username</mat-label> <input formControlName="username" matInput type="text" /> |
