fix(houseofrc): explain why no transponder matched (1.79.1)

This commit is contained in:
larssand committed 2026-11-07 23:24:41 +01:00
1 parent 3829ca1cab
commit 42df6a786f
5 files changed
+10 -4

No files matched your search

+2
View File
@@ -2191,6 +2191,7 @@ const TRANSLATIONS = {
"houseofrc.import_no_transponders": "Inga förare har transponder ännu.",
"houseofrc.import_summary": "{found} av {asked} transpondrar finns på House of RC.",
"houseofrc.import_nothing": "Allt stämmer redan, inget att uppdatera.",
"houseofrc.import_none_found": "Ingen träff. House of RC känner bara till transpondrar som förarna själva lagt in på sin profil där, med hela numret (oftast 7 siffror). Testnummer som 1001 finns inte.",
"houseofrc.import_hint": "Bocka i det som ska ändras. Bara tomma fält är förvalda, inget skrivs över utan att du väljer det.",
"houseofrc.import_model": "Bil",
"houseofrc.import_apply": "Uppdatera valda",
@@ -4372,6 +4373,7 @@ const TRANSLATIONS = {
"houseofrc.import_no_transponders": "No driver has a transponder yet.",
"houseofrc.import_summary": "{found} of {asked} transponders are on House of RC.",
"houseofrc.import_nothing": "Everything already matches, nothing to update.",
"houseofrc.import_none_found": "No match. House of RC only knows transponders the drivers have added to their own profile there, with the full number (usually 7 digits). Test numbers like 1001 are not there.",
"houseofrc.import_hint": "Tick what to change. Only empty fields are pre-ticked; nothing is overwritten unless you choose it.",
"houseofrc.import_model": "Car",
"houseofrc.import_apply": "Update selected",
+1 -1
View File
@@ -115,7 +115,7 @@ export async function openHouseOfRcDriverImport({ state, t, escapeHtml, saveStat
const summary = t("houseofrc.import_summary", { found, asked: result.asked });
const changes = plan.filter((row) => row.nameDiffers || row.brandDiffers || !row.linked);
if (!changes.length) {
body.innerHTML = `<p>${escapeHtml(summary)}</p><p>${escapeHtml(t("houseofrc.import_nothing"))}</p>`;
body.innerHTML = `<p>${escapeHtml(summary)}</p><p>${escapeHtml(t(found ? "houseofrc.import_nothing" : "houseofrc.import_none_found"))}</p>`;
return;
}
const cell = (row, field, current, incoming) => (row[`${field}Differs`]