Allow admins to delete suggestions in Reveal
This commit is contained in:
@@ -155,7 +155,8 @@ function renderAllSuggestions() {
|
||||
if (!list) return;
|
||||
list.innerHTML = "";
|
||||
const allowEdit = !!state.me?.isAdmin;
|
||||
state.allSuggestions.forEach((s) => list.appendChild(buildCard(s, { showAuthor: true, allowEdit })));
|
||||
const allowDelete = !!state.me?.isAdmin && (state.phase === "Reveal" || state.phase === "Suggest");
|
||||
state.allSuggestions.forEach((s) => list.appendChild(buildCard(s, { showAuthor: true, allowEdit, allowDelete })));
|
||||
}
|
||||
|
||||
function renderVotes() {
|
||||
|
||||
Reference in New Issue
Block a user