Restore admin delete chips during voting
This commit is contained in:
@@ -152,6 +152,7 @@ export function renderVotes() {
|
|||||||
const li = buildCard(s, {
|
const li = buildCard(s, {
|
||||||
showAuthor: true,
|
showAuthor: true,
|
||||||
allowEdit: canEdit,
|
allowEdit: canEdit,
|
||||||
|
allowDelete: !!state.me?.isAdmin,
|
||||||
lockTitle,
|
lockTitle,
|
||||||
});
|
});
|
||||||
const hasVote = Object.prototype.hasOwnProperty.call(votesMap, s.id);
|
const hasVote = Object.prototype.hasOwnProperty.call(votesMap, s.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user