Merge pull request #754 from Berry-95/491-FEAT-Allow-disks-to-be-archived

Fixes 491 [FEAT] Allow disks to be hidden/archived
This commit is contained in:
Jason Kulatunga
2025-04-30 10:31:21 -04:00
committed by GitHub
26 changed files with 406 additions and 33 deletions
@@ -34,6 +34,7 @@ export class DashboardComponent implements OnInit, AfterViewInit, OnDestroy
temperatureOptions: ApexOptions;
tempDurationKey = 'forever'
config: AppConfig;
showArchived: boolean;
// Private
private _unsubscribeAll: Subject<void>;
@@ -257,6 +258,14 @@ export class DashboardComponent implements OnInit, AfterViewInit, OnDestroy
delete this.summaryData[wwn] // remove the device from the summary list.
}
onDeviceArchived(wwn: string): void {
this.summaryData[wwn].device.archived = true;
}
onDeviceUnarchived(wwn: string): void {
this.summaryData[wwn].device.archived = false;
}
/*
DURATION_KEY_WEEK = "week"