complete profil 100%
This commit is contained in:
@@ -139,12 +139,22 @@ if(id.length > 0){
|
||||
|
||||
}
|
||||
instance({
|
||||
method : "put",
|
||||
method : "patch",
|
||||
url:"users/"+id,
|
||||
withCredentials: true,
|
||||
data: dataPut
|
||||
}).then(function(response){
|
||||
console.log(response);
|
||||
switch(response.status){
|
||||
case 200:
|
||||
location.reload();
|
||||
break;
|
||||
case 304:
|
||||
console.log("non modifie");
|
||||
break;
|
||||
default:
|
||||
console.log("error inconnue");
|
||||
break
|
||||
}
|
||||
}).catch(function(error){
|
||||
console.log(error);
|
||||
});
|
||||
|
Reference in New Issue
Block a user