Validation fixes, finished application creation, added required char (*) for required fields
This commit is contained in:
		| @@ -27,7 +27,7 @@ | ||||
|             Client.AuthToken = token; | ||||
|             AuthData = authData; | ||||
|  | ||||
|             Status?.SetSucces("Logged in successfully."); | ||||
|             Status?.SetSuccess("Logged in successfully."); | ||||
|         } | ||||
|         catch (ApiException<ProblemDetails> e) | ||||
|         { | ||||
|   | ||||
| @@ -3,7 +3,7 @@ | ||||
| <div> | ||||
|     <div > | ||||
|         <label> | ||||
|             First name:<br/> | ||||
|             First name@(Constants.RequiredFieldMarkup):<br/> | ||||
|             <InputText DisplayName="First name" class="rounded" @bind-Value="Name.FirstName"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => Name.FirstName"></ValidationMessage> | ||||
| @@ -11,7 +11,7 @@ | ||||
|  | ||||
|     <div > | ||||
|         <label> | ||||
|             Surname:<br/> | ||||
|             Surname@(Constants.RequiredFieldMarkup):<br/> | ||||
|             <InputText class="rounded" @bind-Value="Name.Surname"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => Name.Surname"></ValidationMessage> | ||||
|   | ||||
| @@ -25,7 +25,7 @@ | ||||
|         StateHasChanged(); | ||||
|     } | ||||
|  | ||||
|     public void SetSucces(string message) | ||||
|     public void SetSuccess(string message) | ||||
|     { | ||||
|         statusClass = "text-success"; | ||||
|         StatusText = message; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user