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?
|
/// Hat der Benutzer die MangoPay-AGB akzeptiert?
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _acceptedTermsMangopay;
|
private bool _acceptedTermsMangopay = true;
|
||||||
|
|
||||||
#region Commands
|
#region Commands
|
||||||
|
|
||||||
@ -177,7 +177,7 @@ namespace gehGassiApp.ViewModels.More
|
|||||||
{
|
{
|
||||||
SelectedNationality = null;
|
SelectedNationality = null;
|
||||||
SelectedMainResidence = null;
|
SelectedMainResidence = null;
|
||||||
AcceptedTermsMangopay = false;
|
AcceptedTermsMangopay = true;
|
||||||
|
|
||||||
IsBusy = true;
|
IsBusy = true;
|
||||||
await Task.Delay(Core.Common.Constants.AnimationDelayDetails);
|
await Task.Delay(Core.Common.Constants.AnimationDelayDetails);
|
||||||
|
|||||||
@ -91,7 +91,7 @@ namespace gehGassiApp.ViewModels.More
|
|||||||
/// Hat der Benutzer die MangoPay-AGB akzeptiert?
|
/// Hat der Benutzer die MangoPay-AGB akzeptiert?
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _acceptedTermsMangopay;
|
private bool _acceptedTermsMangopay = true;
|
||||||
|
|
||||||
#region Commands
|
#region Commands
|
||||||
|
|
||||||
@ -193,7 +193,7 @@ namespace gehGassiApp.ViewModels.More
|
|||||||
{
|
{
|
||||||
SelectedNationality = null;
|
SelectedNationality = null;
|
||||||
SelectedMainResidence = null;
|
SelectedMainResidence = null;
|
||||||
AcceptedTermsMangopay = false;
|
AcceptedTermsMangopay = true;
|
||||||
|
|
||||||
IsBusy = true;
|
IsBusy = true;
|
||||||
await Task.Delay(Core.Common.Constants.AnimationDelayDetails);
|
await Task.Delay(Core.Common.Constants.AnimationDelayDetails);
|
||||||
|
|||||||
@ -35,6 +35,7 @@
|
|||||||
<Entry
|
<Entry
|
||||||
x:Name="email"
|
x:Name="email"
|
||||||
Keyboard="Email"
|
Keyboard="Email"
|
||||||
|
AutomationId="Login"
|
||||||
Placeholder="{x:Static res:Text.Login_Username}"
|
Placeholder="{x:Static res:Text.Login_Username}"
|
||||||
Text="{Binding Email}">
|
Text="{Binding Email}">
|
||||||
<Entry.Behaviors>
|
<Entry.Behaviors>
|
||||||
@ -48,6 +49,7 @@
|
|||||||
<Entry
|
<Entry
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
HorizontalOptions="Fill"
|
HorizontalOptions="Fill"
|
||||||
|
AutomationId="Password"
|
||||||
IsPassword="{Binding Source={x:Reference showPasswordTrigger}, Path=HidePassword}"
|
IsPassword="{Binding Source={x:Reference showPasswordTrigger}, Path=HidePassword}"
|
||||||
Keyboard="Text"
|
Keyboard="Text"
|
||||||
Placeholder="{x:Static res:Text.Login_Password}"
|
Placeholder="{x:Static res:Text.Login_Password}"
|
||||||
|
|||||||
@ -64,7 +64,7 @@
|
|||||||
ItemsSource="{Binding MainResidences}"
|
ItemsSource="{Binding MainResidences}"
|
||||||
SelectedItem="{Binding SelectedMainResidence}" />
|
SelectedItem="{Binding SelectedMainResidence}" />
|
||||||
</Border>
|
</Border>
|
||||||
<Grid
|
<!-- <Grid
|
||||||
Margin="{StaticResource MarginBig}"
|
Margin="{StaticResource MarginBig}"
|
||||||
ColumnDefinitions="*,Auto"
|
ColumnDefinitions="*,Auto"
|
||||||
ColumnSpacing="10">
|
ColumnSpacing="10">
|
||||||
@ -83,7 +83,7 @@
|
|||||||
HorizontalOptions="End"
|
HorizontalOptions="End"
|
||||||
IsToggled="{Binding AcceptedTermsMangopay}"
|
IsToggled="{Binding AcceptedTermsMangopay}"
|
||||||
VerticalOptions="Center" />
|
VerticalOptions="Center" />
|
||||||
</Grid>
|
</Grid> -->
|
||||||
|
|
||||||
<ActivityIndicator
|
<ActivityIndicator
|
||||||
HorizontalOptions="Center"
|
HorizontalOptions="Center"
|
||||||
|
|||||||
@ -65,7 +65,7 @@
|
|||||||
ItemsSource="{Binding MainResidences}"
|
ItemsSource="{Binding MainResidences}"
|
||||||
SelectedItem="{Binding SelectedMainResidence}" />
|
SelectedItem="{Binding SelectedMainResidence}" />
|
||||||
</Border>
|
</Border>
|
||||||
<Grid
|
<!-- <Grid
|
||||||
Margin="{StaticResource MarginBig}"
|
Margin="{StaticResource MarginBig}"
|
||||||
ColumnDefinitions="*,Auto"
|
ColumnDefinitions="*,Auto"
|
||||||
ColumnSpacing="10">
|
ColumnSpacing="10">
|
||||||
@ -84,7 +84,7 @@
|
|||||||
HorizontalOptions="End"
|
HorizontalOptions="End"
|
||||||
IsToggled="{Binding AcceptedTermsMangopay}"
|
IsToggled="{Binding AcceptedTermsMangopay}"
|
||||||
VerticalOptions="Center" />
|
VerticalOptions="Center" />
|
||||||
</Grid>
|
</Grid>-->
|
||||||
|
|
||||||
<ActivityIndicator
|
<ActivityIndicator
|
||||||
HorizontalOptions="Center"
|
HorizontalOptions="Center"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user