Version 0.7.2b - Fix des utilisateurs

This commit is contained in:
CICD - Pipeline 2023-08-31 23:05:03 +02:00
parent c9018feeeb
commit 1364601ccf
3 changed files with 8 additions and 4 deletions

View File

@ -34,7 +34,7 @@
"deaf": false,
"bio": "",
"banner": null,
"token": "0c121c2f-a9cd-444b-952f-1eb23e463cc0",
"token": "06f1be40-5bd3-47fb-8d47-a3fb227984eb",
"admin": true
}
]

View File

@ -64,6 +64,7 @@ settingsBtn.addEventListener("click", () => {
const deleteBtn = document.getElementById(data.indexOf(user) + "_delete")
if(data[data.indexOf(user)].admin == true) {
adminBtn.style.color = "#19a7d2"
@ -72,7 +73,7 @@ settingsBtn.addEventListener("click", () => {
adminBtn.addEventListener("click", () => {
send("USERS/ADMIN", data[data.indexOf(user)])
send("USERS/ADMIN", data[adminBtn.id.replace("_admin", "")])
socket.emit("GET/USERS")
})
@ -80,7 +81,7 @@ settingsBtn.addEventListener("click", () => {
deleteBtn.addEventListener("click", () => {
send("USERS/DELETE", data[data.indexOf(user)])
send("USERS/DELETE", data[adminBtn.id.replace("_admin", "")])
socket.emit("GET/USERS")
})

View File

@ -1058,16 +1058,19 @@ p {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 2%;
}
.set_user_info {
display: flex;
}
.set_user_info img {
width: 30%;
margin-right: 5%;
}