From fcd2eb8eae8f423022b2261d0caa2092a05b73e5 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Tue, 3 Jan 2023 23:32:56 +0100 Subject: [PATCH] bla --- static/js/main.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/static/js/main.js b/static/js/main.js index 6ba7222..6a215ac 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -112,12 +112,11 @@ function get_admin(type) { prankData.push(data.prankData[prankUid]); } prankData.sort((a, b) => new Date(a.date) - new Date(b.date)); - console.log(prankData); for (entry in prankData) { switch (prankData[entry].type) { case "crêpe": - if (prankData[entry].state == "pending" - || prankData[entry].state == "accepted") { + if (prankData[entry].state == "Pending" + || prankData[entry].state == "Accepted") { $("#admin-content").append(`
Demande de crêpe par ${prankData[entry].creator}
@@ -130,9 +129,9 @@ function get_admin(type) {
UID: ${prankData[entry].date}
-
${(prankData[entry].state == "pending") ? "Accepter" : "Récupérer (accepté par: "+prankData[entry].manageBy+")"}
+
${(prankData[entry].state == "Pending") ? "Accepter" : "Récupérer (accepté par: "+prankData[entry].manageBy+")"}
Refuser
-
Done
+
Done
`) @@ -159,7 +158,7 @@ function get_admin(type) { } treasureData.sort((a, b) => new Date(a.date) - new Date(b.date)); for (entry in treasureData) { - if (treasureData[entry].state == "pending") { + if (treasureData[entry].state == "Pending") { $("#admin-content").append(`
Demande de vérification par ${treasureData[entry].creator}