fix(i18n): keep opted-in dialog copy current while pending
This commit is contained in:
@@ -483,7 +483,7 @@ export default function Correspondence({ jobId, jobContext }: { jobId: number; j
|
||||
const generation = session.generation;
|
||||
const active = () => session.active && session.jobId === jobId && session.generation === generation;
|
||||
if (!active()) return;
|
||||
if (!(await confirmAction(t("correspondenceDeleteConfirm"), { title: t("correspondenceDeleteTitle"), confirmLabel: t("adminUsersDelete"), destructive: true }))) return;
|
||||
if (!(await confirmAction({ key: "correspondenceDeleteConfirm" }, { title: { key: "correspondenceDeleteTitle" }, confirmLabel: { key: "adminUsersDelete" }, destructive: true }))) return;
|
||||
if (!active()) return;
|
||||
try {
|
||||
await api.delete(`/correspondence/${messageId}`);
|
||||
|
||||
Reference in New Issue
Block a user