Files
MajoorWaldi-ComfyUI-Majoor-…/js/utils/deleteGuard.js
T
MajoorWaldi 834ef1fef3 feat(docs): comprehensive AI features guide and new documentation
- Added new AI_FEATURES.md guide covering all AI-powered capabilities
- Updated DOCUMENTATION_INDEX.md to include new AI features guide
- Added AI Features section to README.md with overview and models used
- Improved backfill warning information in README.md
- Updated reset index / delete DB procedures in DB_MAINTENANCE.md
- Added configuration options for AI features in README.md
2026-03-06 12:43:46 +01:00

14 lines
599 B
JavaScript

import { APP_CONFIG } from "../app/config.js";
import { comfyConfirm } from "../app/dialogs.js";
import { t } from "../app/i18n.js";
export async function confirmDeletion(count, label) {
if (!APP_CONFIG.DELETE_CONFIRMATION) return true;
const message = count > 1
? t("dialog.deleteSelectedFiles", "Delete {count} selected files?", { count })
: t("dialog.deleteSingleFile", "Delete \"{label}\"?", {
label: String(label || t("label.thisFile", "this file")),
});
return comfyConfirm(message, t("dialog.confirmDeleteTitle", "Majoor: Confirm delete"));
}