tango-app-ui-shared 3.7.3-dev10 → 3.7.3-dev11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4416,12 +4416,18 @@ class TrafficHeaderComponent {
|
|
|
4416
4416
|
{ status: 'deactive', checked: false }
|
|
4417
4417
|
];
|
|
4418
4418
|
const storedFilters = localStorage.getItem("header-filters");
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4419
|
+
let statusList = [];
|
|
4420
|
+
if (this.selectedFilters?.status && this.selectedFilters.status.length > 0) {
|
|
4421
|
+
statusList = this.selectedFilters.status;
|
|
4422
|
+
}
|
|
4423
|
+
else if (storedFilters) {
|
|
4424
|
+
const parsed = JSON.parse(storedFilters);
|
|
4425
|
+
statusList = parsed.status && parsed.status.length > 0 ? parsed.status : ['active'];
|
|
4426
|
+
}
|
|
4427
|
+
else {
|
|
4428
|
+
statusList = ['active'];
|
|
4429
|
+
}
|
|
4430
|
+
// update selectedFilters to always have a value
|
|
4425
4431
|
this.selectedFilters.status = statusList;
|
|
4426
4432
|
// mark checked based on values
|
|
4427
4433
|
this.filteredStatus = this.statusVal.map((status) => ({
|