Refactor terms acceptance handling and update application version to 1.281; clean up commented code in multiple views.
This commit is contained in:
parent
4bcc524b2c
commit
20936a5b5d
@ -150,7 +150,7 @@
|
||||
<Switch Grid.Column="1" VerticalOptions="Center" HorizontalOptions="End" IsToggled="{Binding ViewModel.AcceptedPrivacy}"></Switch>
|
||||
</Grid>
|
||||
|
||||
<!-- <Grid ColumnDefinitions="*,Auto" ColumnSpacing="10"
|
||||
<Grid ColumnDefinitions="*,Auto" ColumnSpacing="10"
|
||||
IsVisible="{Binding ViewModel.AppUserType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter={x:Static enum:AppUserType.DogWalker}}" >
|
||||
<Label Grid.Column="0" Text="{x:Static res:Text.Register_AcceptTermsMangopay}" Style="{StaticResource LinkLabelStyle}" HorizontalOptions="Start" Padding="0,0,0,0" LineBreakMode="TailTruncation">
|
||||
<Label.GestureRecognizers>
|
||||
@ -158,7 +158,7 @@
|
||||
</Label.GestureRecognizers>
|
||||
</Label>
|
||||
<Switch Grid.Column="1" VerticalOptions="Center" HorizontalOptions="End" IsToggled="{Binding ViewModel.AcceptedTermsMangopay}"></Switch>
|
||||
</Grid> -->
|
||||
</Grid>
|
||||
</VerticalStackLayout>
|
||||
|
||||
<VerticalStackLayout Spacing="0" IsVisible="{Binding ViewModel.AppUserType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter={x:Static enum:AppUserType.DogWalker}}" Margin="{StaticResource MarginBig}">
|
||||
|
||||
@ -117,7 +117,7 @@
|
||||
<Switch Grid.Column="1" VerticalOptions="Center" HorizontalOptions="End" IsToggled="{Binding ViewModel.AcceptedPrivacy}"></Switch>
|
||||
</Grid>
|
||||
|
||||
<!-- <Grid ColumnDefinitions="*,Auto" ColumnSpacing="10"
|
||||
<Grid ColumnDefinitions="*,Auto" ColumnSpacing="10"
|
||||
IsVisible="{Binding ViewModel.AppUserType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter={x:Static enum:AppUserType.DogWalker}}" >
|
||||
<Label Grid.Column="0" Text="{x:Static res:Text.Register_AcceptTermsMangopay}" Style="{StaticResource LinkLabelStyle}" HorizontalOptions="Start" Padding="0,0,0,0" LineBreakMode="TailTruncation">
|
||||
<Label.GestureRecognizers>
|
||||
@ -125,7 +125,7 @@
|
||||
</Label.GestureRecognizers>
|
||||
</Label>
|
||||
<Switch Grid.Column="1" VerticalOptions="Center" HorizontalOptions="End" IsToggled="{Binding ViewModel.AcceptedTermsMangopay}"></Switch>
|
||||
</Grid> -->
|
||||
</Grid>
|
||||
</VerticalStackLayout>
|
||||
|
||||
<VerticalStackLayout Spacing="0" IsVisible="{Binding ViewModel.AppUserType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter={x:Static enum:AppUserType.DogWalker}}" Margin="{StaticResource MarginBig}">
|
||||
|
||||
@ -203,9 +203,7 @@ namespace gehGassiApp.ViewModels.Account
|
||||
if (AppUserType == AppUserType.DogOwner)
|
||||
return true;
|
||||
|
||||
// if (AcceptedTermsMangopay && SelectedNationality != null && SelectedMainResidence != null)
|
||||
// return true;
|
||||
if (SelectedNationality != null && SelectedMainResidence != null)
|
||||
if (AcceptedTermsMangopay && SelectedNationality != null && SelectedMainResidence != null)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
@ -81,7 +81,7 @@ namespace gehGassiApp.ViewModels.More
|
||||
/// Hat der Benutzer die MangoPay-AGB akzeptiert?
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
private bool _acceptedTermsMangopay = true;
|
||||
private bool _acceptedTermsMangopay;
|
||||
|
||||
#region Commands
|
||||
|
||||
@ -177,7 +177,7 @@ namespace gehGassiApp.ViewModels.More
|
||||
{
|
||||
SelectedNationality = null;
|
||||
SelectedMainResidence = null;
|
||||
AcceptedTermsMangopay = true;
|
||||
AcceptedTermsMangopay = false;
|
||||
|
||||
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 = true;
|
||||
private bool _acceptedTermsMangopay;
|
||||
|
||||
#region Commands
|
||||
|
||||
@ -193,7 +193,7 @@ namespace gehGassiApp.ViewModels.More
|
||||
{
|
||||
SelectedNationality = null;
|
||||
SelectedMainResidence = null;
|
||||
AcceptedTermsMangopay = true;
|
||||
AcceptedTermsMangopay = false;
|
||||
|
||||
IsBusy = true;
|
||||
await Task.Delay(Core.Common.Constants.AnimationDelayDetails);
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -65,7 +65,7 @@
|
||||
ItemsSource="{Binding MainResidences}"
|
||||
SelectedItem="{Binding SelectedMainResidence}" />
|
||||
</Border>
|
||||
<!-- <Grid
|
||||
<Grid
|
||||
Margin="{StaticResource MarginBig}"
|
||||
ColumnDefinitions="*,Auto"
|
||||
ColumnSpacing="10">
|
||||
@ -84,7 +84,7 @@
|
||||
HorizontalOptions="End"
|
||||
IsToggled="{Binding AcceptedTermsMangopay}"
|
||||
VerticalOptions="Center" />
|
||||
</Grid>-->
|
||||
</Grid>
|
||||
|
||||
<ActivityIndicator
|
||||
HorizontalOptions="Center"
|
||||
|
||||
@ -546,7 +546,7 @@
|
||||
</Grid.GestureRecognizers>
|
||||
</Grid>
|
||||
|
||||
<!-- <Border Style="{StaticResource Separator}" />
|
||||
<Border Style="{StaticResource Separator}" />
|
||||
|
||||
<Grid
|
||||
ColumnDefinitions="24,*,24"
|
||||
@ -669,7 +669,7 @@
|
||||
<Grid.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding PayoutsCommand}" />
|
||||
</Grid.GestureRecognizers>
|
||||
</Grid> -->
|
||||
</Grid>
|
||||
|
||||
<Border Style="{StaticResource Separator}" />
|
||||
|
||||
|
||||
@ -510,7 +510,7 @@
|
||||
</Grid.GestureRecognizers>
|
||||
</Grid>
|
||||
|
||||
<!-- <Border Style="{StaticResource Separator}" />
|
||||
<Border Style="{StaticResource Separator}" />
|
||||
|
||||
<Grid
|
||||
ColumnDefinitions="24,*,24"
|
||||
@ -553,9 +553,9 @@
|
||||
<Grid.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding BankAccountCommand}" />
|
||||
</Grid.GestureRecognizers>
|
||||
</Grid> -->
|
||||
</Grid>
|
||||
|
||||
<!-- <Border Style="{StaticResource Separator}" />
|
||||
<Border Style="{StaticResource Separator}" />
|
||||
|
||||
<Grid
|
||||
ColumnDefinitions="24,*,24"
|
||||
@ -598,9 +598,9 @@
|
||||
<Grid.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding IdentityProofCommand}" />
|
||||
</Grid.GestureRecognizers>
|
||||
</Grid> -->
|
||||
</Grid>
|
||||
|
||||
<!-- <Border Style="{StaticResource Separator}" />
|
||||
<Border Style="{StaticResource Separator}" />
|
||||
|
||||
<Grid
|
||||
ColumnDefinitions="24,*,24"
|
||||
@ -633,7 +633,7 @@
|
||||
<Grid.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding PayoutsCommand}" />
|
||||
</Grid.GestureRecognizers>
|
||||
</Grid> -->
|
||||
</Grid>
|
||||
|
||||
<Border Style="{StaticResource Separator}" />
|
||||
|
||||
|
||||
@ -453,7 +453,7 @@
|
||||
SelectedItem="{Binding SelectedMainResidence}" />
|
||||
</Border>
|
||||
|
||||
<!-- <Grid Margin="{StaticResource MarginVerySmall}" ColumnDefinitions="*,*">
|
||||
<Grid Margin="{StaticResource MarginVerySmall}" ColumnDefinitions="*,*">
|
||||
<Label
|
||||
Grid.Column="0"
|
||||
LineBreakMode="TailTruncation"
|
||||
@ -478,7 +478,7 @@
|
||||
<Label
|
||||
Margin="{StaticResource MarginBig}"
|
||||
Style="{StaticResource BodyCaption_GreyDark}"
|
||||
Text="{x:Static res:Text.Profile_AutoPayout_Desc}" /> -->
|
||||
Text="{x:Static res:Text.Profile_AutoPayout_Desc}" />
|
||||
|
||||
<ActivityIndicator
|
||||
HorizontalOptions="Center"
|
||||
|
||||
@ -511,7 +511,7 @@
|
||||
SelectedItem="{Binding SelectedMainResidence}" />
|
||||
</Border>
|
||||
|
||||
<!-- <Grid Margin="{StaticResource MarginVerySmall}" ColumnDefinitions="*,*">
|
||||
<Grid Margin="{StaticResource MarginVerySmall}" ColumnDefinitions="*,*">
|
||||
<Label
|
||||
Grid.Column="0"
|
||||
LineBreakMode="TailTruncation"
|
||||
@ -533,7 +533,7 @@
|
||||
</Switch>
|
||||
</Grid>
|
||||
|
||||
<Label Style="{StaticResource BodyCaption_GreyDark}" Text="{x:Static res:Text.Profile_AutoPayout_Desc}" /> -->
|
||||
<Label Style="{StaticResource BodyCaption_GreyDark}" Text="{x:Static res:Text.Profile_AutoPayout_Desc}" />
|
||||
|
||||
<ActivityIndicator
|
||||
HorizontalOptions="Center"
|
||||
|
||||
@ -22,8 +22,8 @@
|
||||
<ApplicationIdGuid>284D2BDB-7FFC-485A-968F-8440A92578FE</ApplicationIdGuid>
|
||||
|
||||
<!-- Versions -->
|
||||
<ApplicationDisplayVersion>1.280</ApplicationDisplayVersion>
|
||||
<ApplicationVersion>280</ApplicationVersion>
|
||||
<ApplicationDisplayVersion>1.281</ApplicationDisplayVersion>
|
||||
<ApplicationVersion>281</ApplicationVersion>
|
||||
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion>
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">29.0</SupportedOSPlatformVersion>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user