add confirmation for mod queue approve/reject actions

This commit is contained in:
plebeius
2026-01-12 20:11:54 +01:00
parent 0cd76c7e62
commit e3431a9acb
+12
View File
@@ -118,6 +118,12 @@ const ModQueueRow = ({ comment, isOdd = false }: ModQueueRowProps) => {
});
const handleApprove = async () => {
// Double confirmation for approve action
const confirm = window.confirm(t('double_confirm'));
if (!confirm) {
return;
}
setInitiatedAction('approve');
try {
await approve();
@@ -127,6 +133,12 @@ const ModQueueRow = ({ comment, isOdd = false }: ModQueueRowProps) => {
};
const handleReject = async () => {
// Double confirmation for reject action
const confirm = window.confirm(t('double_confirm'));
if (!confirm) {
return;
}
setInitiatedAction('reject');
try {
await reject();