- 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
14 lines
599 B
JavaScript
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"));
|
|
}
|