Version 0.7.2b - Fix des utilisateurs
This commit is contained in:
parent
c9018feeeb
commit
1364601ccf
@ -34,7 +34,7 @@
|
|||||||
"deaf": false,
|
"deaf": false,
|
||||||
"bio": "",
|
"bio": "",
|
||||||
"banner": null,
|
"banner": null,
|
||||||
"token": "0c121c2f-a9cd-444b-952f-1eb23e463cc0",
|
"token": "06f1be40-5bd3-47fb-8d47-a3fb227984eb",
|
||||||
"admin": true
|
"admin": true
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -63,6 +63,7 @@ settingsBtn.addEventListener("click", () => {
|
|||||||
const adminBtn = document.getElementById(data.indexOf(user) + "_admin")
|
const adminBtn = document.getElementById(data.indexOf(user) + "_admin")
|
||||||
const deleteBtn = document.getElementById(data.indexOf(user) + "_delete")
|
const deleteBtn = document.getElementById(data.indexOf(user) + "_delete")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(data[data.indexOf(user)].admin == true) {
|
if(data[data.indexOf(user)].admin == true) {
|
||||||
|
|
||||||
@ -70,9 +71,9 @@ settingsBtn.addEventListener("click", () => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
adminBtn.addEventListener("click", () => {
|
adminBtn.addEventListener("click", () => {
|
||||||
|
|
||||||
send("USERS/ADMIN", data[data.indexOf(user)])
|
send("USERS/ADMIN", data[adminBtn.id.replace("_admin", "")])
|
||||||
|
|
||||||
socket.emit("GET/USERS")
|
socket.emit("GET/USERS")
|
||||||
})
|
})
|
||||||
@ -80,7 +81,7 @@ settingsBtn.addEventListener("click", () => {
|
|||||||
deleteBtn.addEventListener("click", () => {
|
deleteBtn.addEventListener("click", () => {
|
||||||
|
|
||||||
|
|
||||||
send("USERS/DELETE", data[data.indexOf(user)])
|
send("USERS/DELETE", data[adminBtn.id.replace("_admin", "")])
|
||||||
|
|
||||||
socket.emit("GET/USERS")
|
socket.emit("GET/USERS")
|
||||||
})
|
})
|
||||||
|
@ -1058,16 +1058,19 @@ p {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
padding-bottom: 2%;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.set_user_info {
|
.set_user_info {
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.set_user_info img {
|
.set_user_info img {
|
||||||
|
|
||||||
width: 30%;
|
width: 30%;
|
||||||
margin-right: 5%;
|
margin-right: 5%;
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user