fix: isolate downloads stats state
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user