From 1c44f686ab1a7518bdf1309b3cf557e44600c01e Mon Sep 17 00:00:00 2001 From: Max Mannstein Date: Tue, 15 Jul 2025 11:19:46 +0200 Subject: [PATCH] Refactor XAML and ViewModel code to comment out not needed UI elements and logic for mangopay --- .../Controls/Register/Step2ExternalControl.xaml | 4 ++-- .../gehGassiApp/Controls/Register/Step3Control.xaml | 4 ++-- .../ViewModels/Account/RegisterViewModel.cs | 4 +++- gehGassiApp/gehGassiApp/Views/More/MoreView.xaml | 4 ++-- .../gehGassiApp/Views/More/MoreWalkerView.xaml | 12 ++++++------ gehGassiApp/gehGassiApp/Views/ProfileView.xaml | 4 ++-- gehGassiApp/gehGassiApp/Views/ProfileWalkerView.xaml | 4 ++-- 7 files changed, 19 insertions(+), 17 deletions(-) diff --git a/gehGassiApp/gehGassiApp/Controls/Register/Step2ExternalControl.xaml b/gehGassiApp/gehGassiApp/Controls/Register/Step2ExternalControl.xaml index 3462582..c5ef271 100644 --- a/gehGassiApp/gehGassiApp/Controls/Register/Step2ExternalControl.xaml +++ b/gehGassiApp/gehGassiApp/Controls/Register/Step2ExternalControl.xaml @@ -150,7 +150,7 @@ - - + --> diff --git a/gehGassiApp/gehGassiApp/Controls/Register/Step3Control.xaml b/gehGassiApp/gehGassiApp/Controls/Register/Step3Control.xaml index 937af60..c709204 100644 --- a/gehGassiApp/gehGassiApp/Controls/Register/Step3Control.xaml +++ b/gehGassiApp/gehGassiApp/Controls/Register/Step3Control.xaml @@ -117,7 +117,7 @@ - - + --> diff --git a/gehGassiApp/gehGassiApp/ViewModels/Account/RegisterViewModel.cs b/gehGassiApp/gehGassiApp/ViewModels/Account/RegisterViewModel.cs index 25046a5..c98e476 100644 --- a/gehGassiApp/gehGassiApp/ViewModels/Account/RegisterViewModel.cs +++ b/gehGassiApp/gehGassiApp/ViewModels/Account/RegisterViewModel.cs @@ -203,7 +203,9 @@ namespace gehGassiApp.ViewModels.Account if (AppUserType == AppUserType.DogOwner) return true; - if (AcceptedTermsMangopay && SelectedNationality != null && SelectedMainResidence != null) + // if (AcceptedTermsMangopay && SelectedNationality != null && SelectedMainResidence != null) + // return true; + if (SelectedNationality != null && SelectedMainResidence != null) return true; return false; diff --git a/gehGassiApp/gehGassiApp/Views/More/MoreView.xaml b/gehGassiApp/gehGassiApp/Views/More/MoreView.xaml index 01d3676..d48dd5c 100644 --- a/gehGassiApp/gehGassiApp/Views/More/MoreView.xaml +++ b/gehGassiApp/gehGassiApp/Views/More/MoreView.xaml @@ -476,7 +476,7 @@ - + diff --git a/gehGassiApp/gehGassiApp/Views/More/MoreWalkerView.xaml b/gehGassiApp/gehGassiApp/Views/More/MoreWalkerView.xaml index cfaebd6..323903a 100644 --- a/gehGassiApp/gehGassiApp/Views/More/MoreWalkerView.xaml +++ b/gehGassiApp/gehGassiApp/Views/More/MoreWalkerView.xaml @@ -441,7 +441,7 @@ - + - + - + diff --git a/gehGassiApp/gehGassiApp/Views/ProfileView.xaml b/gehGassiApp/gehGassiApp/Views/ProfileView.xaml index a3b0e7c..ee6a40e 100644 --- a/gehGassiApp/gehGassiApp/Views/ProfileView.xaml +++ b/gehGassiApp/gehGassiApp/Views/ProfileView.xaml @@ -442,7 +442,7 @@ SelectedItem="{Binding SelectedMainResidence}" /> - + - +