Show relock info when results close
This commit is contained in:
@@ -724,6 +724,16 @@ export function openLightbox(url, title) {
|
||||
document.body.appendChild(overlay);
|
||||
}
|
||||
|
||||
export function openResultsRelockModal() {
|
||||
openConfirmModal({
|
||||
title: t("results.relockedTitle"),
|
||||
body: t("results.relockedBody"),
|
||||
confirmLabel: t("results.relockedConfirm"),
|
||||
cancelLabel: t("modal.close"),
|
||||
onConfirm: (close) => close(),
|
||||
});
|
||||
}
|
||||
|
||||
export function openConfirmModal({ title, body, confirmLabel, cancelLabel = t("modal.cancel"), onConfirm }) {
|
||||
const overlay = document.createElement("div");
|
||||
overlay.className = "edit-modal";
|
||||
|
||||
Reference in New Issue
Block a user