Update terms acceptance logic and improve accessibility
- Initialize `_acceptedTermsMangopay` to `true` in `AddPaymentUserViewModel.cs` and `BecomeWalkerViewModel.cs`. - Set `AcceptedTermsMangopay` to `true` on refresh. - Add `AutomationId` attributes to email and password `Entry` elements in `LoginFormView.xaml` for better accessibility. - Comment out a `Grid` element and remove the `Switch` control for `AcceptedTermsMangopay` in `AddPaymentUserView.xaml` and `BecomeWalkerView.xaml`.
This commit is contained in:
parent
fb0e7978ee
commit
0e7db09d33
@ -81,7 +81,7 @@ namespace gehGassiApp.ViewModels.More
|
||||
/// Hat der Benutzer die MangoPay-AGB akzeptiert?
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
private bool _acceptedTermsMangopay;
|
||||
private bool _acceptedTermsMangopay = true;
|
||||
|
||||
#region Commands
|
||||
|
||||
@ -177,7 +177,7 @@ namespace gehGassiApp.ViewModels.More
|
||||
{
|
||||
SelectedNationality = null;
|
||||
SelectedMainResidence = null;
|
||||
AcceptedTermsMangopay = false;
|
||||
AcceptedTermsMangopay = true;
|
||||
|
||||
IsBusy = true;
|
||||
await Task.Delay(Core.Common.Constants.AnimationDelayDetails);
|
||||
|
||||
@ -91,7 +91,7 @@ namespace gehGassiApp.ViewModels.More
|
||||
/// Hat der Benutzer die MangoPay-AGB akzeptiert?
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
private bool _acceptedTermsMangopay;
|
||||
private bool _acceptedTermsMangopay = true;
|
||||
|
||||
#region Commands
|
||||
|
||||
@ -193,7 +193,7 @@ namespace gehGassiApp.ViewModels.More
|
||||
{
|
||||
SelectedNationality = null;
|
||||
SelectedMainResidence = null;
|
||||
AcceptedTermsMangopay = false;
|
||||
AcceptedTermsMangopay = true;
|
||||
|
||||
IsBusy = true;
|
||||
await Task.Delay(Core.Common.Constants.AnimationDelayDetails);
|
||||
|
||||
@ -35,6 +35,7 @@
|
||||
<Entry
|
||||
x:Name="email"
|
||||
Keyboard="Email"
|
||||
AutomationId="Login"
|
||||
Placeholder="{x:Static res:Text.Login_Username}"
|
||||
Text="{Binding Email}">
|
||||
<Entry.Behaviors>
|
||||
@ -48,6 +49,7 @@
|
||||
<Entry
|
||||
Grid.Column="0"
|
||||
HorizontalOptions="Fill"
|
||||
AutomationId="Password"
|
||||
IsPassword="{Binding Source={x:Reference showPasswordTrigger}, Path=HidePassword}"
|
||||
Keyboard="Text"
|
||||
Placeholder="{x:Static res:Text.Login_Password}"
|
||||
|
||||
@ -64,7 +64,7 @@
|
||||
ItemsSource="{Binding MainResidences}"
|
||||
SelectedItem="{Binding SelectedMainResidence}" />
|
||||
</Border>
|
||||
<Grid
|
||||
<!-- <Grid
|
||||
Margin="{StaticResource MarginBig}"
|
||||
ColumnDefinitions="*,Auto"
|
||||
ColumnSpacing="10">
|
||||
@ -83,7 +83,7 @@
|
||||
HorizontalOptions="End"
|
||||
IsToggled="{Binding AcceptedTermsMangopay}"
|
||||
VerticalOptions="Center" />
|
||||
</Grid>
|
||||
</Grid> -->
|
||||
|
||||
<ActivityIndicator
|
||||
HorizontalOptions="Center"
|
||||
|
||||
@ -64,8 +64,8 @@
|
||||
ItemDisplayBinding="{Binding Name}"
|
||||
ItemsSource="{Binding MainResidences}"
|
||||
SelectedItem="{Binding SelectedMainResidence}" />
|
||||
</Border>
|
||||
<Grid
|
||||
</Border>
|
||||
<!-- <Grid
|
||||
Margin="{StaticResource MarginBig}"
|
||||
ColumnDefinitions="*,Auto"
|
||||
ColumnSpacing="10">
|
||||
@ -84,7 +84,7 @@
|
||||
HorizontalOptions="End"
|
||||
IsToggled="{Binding AcceptedTermsMangopay}"
|
||||
VerticalOptions="Center" />
|
||||
</Grid>
|
||||
</Grid>-->
|
||||
|
||||
<ActivityIndicator
|
||||
HorizontalOptions="Center"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user