diff --git a/MCTG/Model/Users/User.cs b/MCTG/Model/Users/User.cs index ba77510..c1ec729 100644 --- a/MCTG/Model/Users/User.cs +++ b/MCTG/Model/Users/User.cs @@ -17,6 +17,7 @@ namespace Model [DataMember(Name = "name")] private string _name = ""; [DataMember(Name = "surname")] private string _surname = ""; [DataMember(Name = "mail")] private string _mail = ""; + [DataMember(Name = "profilepic")] private string _profilePict = "default_picture.png"; [DataMember(Name = "priorities")] private readonly List _priorities = new List @@ -93,8 +94,15 @@ namespace Model /// For now, we define the ProfilePict as a string which is "PhotoParDefaut" /// when the value is null. /// - [DataMember(Name = "profilepic")] - public string ProfilePict { get; private set; } = "default_picture.png"; + public string ProfilePict + { + get => _profilePict; + set + { + _profilePict = value; + OnPropertyChanged(); + } + } /// /// This is the list of priorities specific tu the user. This list is initiate diff --git a/MCTG/Views/ContentPages/AddRecipe.xaml b/MCTG/Views/ContentPages/AddRecipe.xaml index eadfddb..4761d1f 100644 --- a/MCTG/Views/ContentPages/AddRecipe.xaml +++ b/MCTG/Views/ContentPages/AddRecipe.xaml @@ -11,7 +11,7 @@ TitleMini="Ajouter une recette" NeedReturn="True" HeightRequest="100"/> -