Revert "Implement admin back-pass flow and guarded admin actions"

This reverts commit 5595bfd3b1.
This commit is contained in:
2026-02-08 14:43:26 +01:00
parent 5595bfd3b1
commit 5ec18d20ea
25 changed files with 108 additions and 571 deletions

View File

@@ -11,12 +11,10 @@ export const state = {
mySuggestions: [],
allSuggestions: [],
allSuggestionsSig: null,
displayedVoteSuggestionsSig: null,
myVotes: [],
results: [],
votesRendered: false,
adminVoteStatus: null,
adminStatusMenuOpen: false,
};
export function clearUserState() {
@@ -29,13 +27,9 @@ export function clearUserState() {
state.counts = null;
state.mySuggestions = [];
state.allSuggestions = [];
state.allSuggestionsSig = null;
state.displayedVoteSuggestionsSig = null;
state.myVotes = [];
state.results = [];
state.votesRendered = false;
state.adminVoteStatus = null;
state.adminStatusMenuOpen = false;
const adminCard = document.getElementById("admin-card");
if (adminCard) adminCard.classList.add("hidden");
}
@@ -44,5 +38,3 @@ export const getSavedUsername = () =>
localStorage.getItem("last_username") || "";
export const setSavedUsername = (name) =>
localStorage.setItem("last_username", name);
export const clearSavedUsername = () =>
localStorage.removeItem("last_username");