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}