fmeshsync fix with synology,vm's and lxc
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
}
|
||||
|
||||
function isVisible(row) {
|
||||
if (row.hidden || row.classList.contains('hidden')) return false;
|
||||
if (row.hidden || row.classList.contains('hidden') || row.classList.contains('duplicate-hidden')) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -40,23 +40,27 @@
|
||||
const updateStarted = performance.now();
|
||||
const rows = [...table.querySelectorAll('tbody tr')].filter(isDataRow);
|
||||
const visible = rows.filter(isVisible).length;
|
||||
const duplicateTotal = Number.parseInt(table.dataset.duplicateFilterTotal || '', 10);
|
||||
const total = table.dataset.duplicateFilterActive === '1' && Number.isFinite(duplicateTotal)
|
||||
? duplicateTotal
|
||||
: rows.length;
|
||||
const target = countTarget(table, index);
|
||||
if (target) {
|
||||
const template = document.body.dataset.recordCountTemplate || 'Angezeigt: {visible} von {total} Datensätzen';
|
||||
target.textContent = template
|
||||
.replace('{visible}', String(visible))
|
||||
.replace('{total}', String(rows.length));
|
||||
.replace('{total}', String(total));
|
||||
target.title = document.body.dataset.recordCountTitle || '';
|
||||
}
|
||||
window.dispatchEvent(new CustomEvent('asset-list-count-updated', {
|
||||
detail: { table, visible, total: rows.length }
|
||||
detail: { table, visible, total }
|
||||
}));
|
||||
const duration = performance.now() - updateStarted;
|
||||
const logger = duration >= 50 ? console.warn : console.debug;
|
||||
logger('[AssetManager][Performance]', 'list-tools:update', {
|
||||
dauer_ms: Math.round(duration * 10) / 10,
|
||||
sichtbar: visible,
|
||||
gesamt: rows.length
|
||||
gesamt: total
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user