diff --git a/frontend/src/Apps/Profil.vue b/frontend/src/Apps/Profil.vue index 47ddc4c..1e1e5e1 100644 --- a/frontend/src/Apps/Profil.vue +++ b/frontend/src/Apps/Profil.vue @@ -13,20 +13,35 @@ const unreg = ref(false); const reg = ref(false); - const toModify = { + const pattern = { profilPictureUrl:null, email:null, adress:null, password:null, }; + + const patternInfos ={ + email: null, + password: null, + passwordConfirm:null, + id:null, + } - + + let toModify= Object.assign({}, pattern); + let personnalInfos = Object.assign({}, patternInfos); + + function resetInputs(inputs,list){ + inputs=Object.assign({},list); + } + function ChangeInfos(){ for (const [key, value] in Object.entries(toModify)){ if(value !== null){ - alterSelf({key:value}) + alterSelf({key:value}); } } + toModify= Object.assign({}, pattern); } function getPP(){ @@ -73,22 +88,23 @@