Pagina profilo e modiche al theme
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
else
|
||||
{
|
||||
<div class="center-box container d-flex justify-content-center align-items-center min-vh-100">
|
||||
<div class="row border rounded-4 bg-white shadow box-area">
|
||||
<div class="row rounded-4 bg-white">
|
||||
|
||||
<div class="appName rounded-4 d-flex justify-content-center align-items-center flex-column">
|
||||
<span>Nome App</span>
|
||||
@@ -23,7 +23,7 @@ else
|
||||
<MudTextField @bind-Value="UserData.Username" Label="Username" Variant="Variant.Text"/>
|
||||
</div>
|
||||
<div class="input-group mb-2">
|
||||
<MudTextField @bind-Value="UserData.Password" Label="Password" Variant="Variant.Text"/>
|
||||
<MudTextField InputType="@_passwordInput" @bind-Value="UserData.Password" Label="Password" Variant="Variant.Text" Adornment="Adornment.End" AdornmentIcon="@_passwordInputIcon" OnAdornmentClick="ShowPassword" AdornmentAriaLabel="Show Password" />
|
||||
</div>
|
||||
<div class="input-group mb-4">
|
||||
<MudTextField @bind-Value="UserData.CodHash" Label="Profilo azienda" Variant="Variant.Text"/>
|
||||
@@ -55,6 +55,26 @@ else
|
||||
private string ErrorMessage { get; set; } = "";
|
||||
private bool _attemptFailed;
|
||||
|
||||
private bool _isShow;
|
||||
private InputType _passwordInput = InputType.Password;
|
||||
private string _passwordInputIcon = Icons.Material.Rounded.VisibilityOff;
|
||||
|
||||
private void ShowPassword()
|
||||
{
|
||||
@if (_isShow)
|
||||
{
|
||||
_isShow = false;
|
||||
_passwordInputIcon = Icons.Material.Rounded.VisibilityOff;
|
||||
_passwordInput = InputType.Password;
|
||||
}
|
||||
else
|
||||
{
|
||||
_isShow = true;
|
||||
_passwordInputIcon = Icons.Material.Rounded.Visibility;
|
||||
_passwordInput = InputType.Text;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
UserData.CodHash = LocalStorage.GetString("codHash");
|
||||
|
||||
Reference in New Issue
Block a user