This commit is contained in:
2026-08-16 18:18:39 +02:00
parent b19373e2a4
commit d981147ff2
18 changed files with 20707 additions and 20497 deletions
+15 -2
View File
@@ -384,11 +384,18 @@
reprocessSampleLimit: 25
});
const r = res.result;
const mappedWith = Number(r.mapped_with_category ?? 0);
const mappedWithout = Number(r.mapped_without_category ?? 0);
const mappedTotal = mappedWith + mappedWithout;
success = i18n.t("flash.admin.fixA1Success", {
name: targetName,
prompts: String(r.prompts ?? r.category_prompts_updated ?? 0),
hashes: String(r.hashes ?? r.weak_hashes_cleared ?? 0),
categories: String(r.categories ?? r.categories_backfilled ?? 0)
categories: String(r.categories ?? r.categories_backfilled ?? 0),
mapped_backfilled: String(r.mapped_backfilled ?? r.mapped_categories_backfilled ?? 0),
mapped_with: String(mappedWith),
mapped_total: String(mappedTotal),
taxonomy: String(r.taxonomy_categories ?? 0)
});
fixOpen = false;
fixCompany = null;
@@ -410,17 +417,23 @@
me?.staff_home_company_id?.trim() ||
me?.staff_home_company?.id?.trim() ||
undefined;
if (!destId && me?.company?.id && me.company.id === cloneCompany.id) {
error = i18n.t("flash.admin.cloneDestMissing");
return;
}
const res = await cloneAdminCompanyCatalog(cloneCompany.id, {
destCompanyId: destId
});
const products = Number(res.counts?.raw_products ?? 0);
const categories = Number(res.counts?.categories ?? 0);
const mappedWith = Number(res.counts?.mapped_with_category ?? 0);
const activeDest = (res.active_company_id || res.dest_company_id || "").trim();
success = i18n.t("flash.admin.catalogCloned", {
source: cloneCompany.name,
dest: cloneDestLabel,
products: String(products),
categories: String(categories)
categories: String(categories),
mapped_with: String(mappedWith)
});
cloneOpen = false;
cloneCompany = null;