diff --git a/web/html/user.html b/web/html/user.html
index e7176f0..5ae105b 100644
--- a/web/html/user.html
+++ b/web/html/user.html
@@ -87,7 +87,7 @@
- <- Retour à la liste
+ <- Retour à la liste
@@ -104,7 +104,7 @@
diff --git a/web/html/users.html b/web/html/users.html
index 7418523..6ab290b 100644
--- a/web/html/users.html
+++ b/web/html/users.html
@@ -115,20 +115,7 @@
-
-
+
diff --git a/web/js/login.js b/web/js/login.js
index 51bd52d..4a1cb2c 100644
--- a/web/js/login.js
+++ b/web/js/login.js
@@ -2,7 +2,6 @@ checkToken();
document.getElementById("signin").addEventListener("submit", function(evt){
evt.preventDefault();
- console.log("toto");
var pseudo = document.getElementById("floatingPseudo");
var password = document.getElementById("floatingPassword");
if((password.value.length > 0) || (pseudo.value.length > 0)){
diff --git a/web/js/user.js b/web/js/user.js
index 78daf72..f49dadb 100644
--- a/web/js/user.js
+++ b/web/js/user.js
@@ -20,6 +20,30 @@ if(id.length > 0){
}
}
}
+
+ var buttonUser = "";
+ switch(response.data.status){
+ case 1:
+ buttonUser = "disableUser";
+ break;
+ case 2:
+ buttonUser = "enableUser";
+ break;
+ case -1:
+ buttonUser = "cancelUser";
+ document.getElementById("removeUser").classList.add("hidden");
+ break;
+ case 0:
+ buttonUser = "enableUser";
+ break;
+ default:
+ break;
+
+ }
+ if(buttonUser.length > 0){
+ console.log(disableUser);
+ document.getElementById(buttonUser).classList.remove("hidden");
+ }
})
.catch(function(error){