fix: isolate downloads stats state

This commit is contained in:
Thomas Camlong committed 2026-08-14 22:07:12 +02:00
1 parent 2e3e654748
commit 3c533f2d96
4 files changed
+42 -10

No files matched your search

@@ -22,6 +22,13 @@ export const DOWNLOAD_COLUMN_ACCESSORS = [
type DownloadColumnAccessor = (typeof DOWNLOAD_COLUMN_ACCESSORS)[number];
export function getDownloadsStatsDisplay(showCompactStats: boolean, isAdvanced: boolean) {
return {
visible: showCompactStats || isAdvanced,
canToggle: !isAdvanced,
};
}
export function getDownloadColumnAccessors(
configuredColumns: readonly DownloadColumnAccessor[],
isAdvanced: boolean,