Version 0.7.2d - Fix des utilisateurs
This commit is contained in:
parent
3a4d060060
commit
9bdcbd4fb4
@ -356,6 +356,7 @@ function IOConnection(io) {
|
||||
auth.setAdmin(data)
|
||||
|
||||
socket.emit("ANSWER/GET/USERS/ADMIN", "OK")
|
||||
socket.emit("ALWAYS/UPDATE_USERS")
|
||||
|
||||
}
|
||||
|
||||
@ -386,6 +387,8 @@ function IOConnection(io) {
|
||||
auth.removeUser(data.token)
|
||||
|
||||
socket.emit("ANSWER/GET/USERS/ADMIN", "OK")
|
||||
socket.emit("ALWAYS/UPDATE_USERS")
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -33,12 +33,16 @@ settingsBtn.addEventListener("click", () => {
|
||||
|
||||
})
|
||||
|
||||
socket.on("ALWAYS/UPDATE_USERS", () => {
|
||||
|
||||
loadUsers()
|
||||
})
|
||||
|
||||
settings_logs.style.color = "white"
|
||||
|
||||
function loadUsers() {
|
||||
|
||||
socket.emit("GET/USERS")
|
||||
socket.on("ANSWER/GET/USERS",(data) => {
|
||||
get("USERS").then(data => {
|
||||
|
||||
|
||||
var userToPush = new Array()
|
||||
|
Loading…
x
Reference in New Issue
Block a user