cat-qw-lib 2.5.22 → 2.5.23
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.
package/fesm2022/cat-qw-lib.mjs
CHANGED
|
@@ -2625,6 +2625,9 @@ class QueueFilterDropdownService extends BaseService {
|
|
|
2625
2625
|
if (hasUnassigned) {
|
|
2626
2626
|
filterParams['unassigned'] = 'true';
|
|
2627
2627
|
}
|
|
2628
|
+
else {
|
|
2629
|
+
filterParams['unassigned'] = 'false';
|
|
2630
|
+
}
|
|
2628
2631
|
// Set underwriterId parameter only if there are real IDs (excluding "unassigned")
|
|
2629
2632
|
if (realUnderwriterIds.length > 0) {
|
|
2630
2633
|
filterParams['underwriterId'] = realUnderwriterIds.join(',');
|
|
@@ -7298,9 +7301,14 @@ class QueueFilterDropdownComponent {
|
|
|
7298
7301
|
if (!this.showDropdown) {
|
|
7299
7302
|
// Store current state when opening dropdown (this will be the applied filters)
|
|
7300
7303
|
this.originalFilters = this.filterService.getFilters();
|
|
7301
|
-
//
|
|
7304
|
+
// Reset loading state and reload underwriter list every time dropdown opens
|
|
7305
|
+
this.loadingUnderwriters = false;
|
|
7302
7306
|
this.loadInitialUnderwriters();
|
|
7303
7307
|
}
|
|
7308
|
+
else {
|
|
7309
|
+
// Reset loading state when closing dropdown
|
|
7310
|
+
this.loadingUnderwriters = false;
|
|
7311
|
+
}
|
|
7304
7312
|
this.showDropdown = !this.showDropdown;
|
|
7305
7313
|
this.skipNextDocumentClick = true;
|
|
7306
7314
|
this.filters = this.filterService.getFilters();
|
|
@@ -7359,11 +7367,12 @@ class QueueFilterDropdownComponent {
|
|
|
7359
7367
|
}
|
|
7360
7368
|
applyFilters() {
|
|
7361
7369
|
const filterData = this.filterService.getFilters();
|
|
7362
|
-
if
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7370
|
+
// Always emit filterApplied event to trigger API call, even if no filters
|
|
7371
|
+
// This ensures the list API is called every time Apply Filters is clicked
|
|
7372
|
+
this.filterApplied.emit(filterData);
|
|
7373
|
+
this.filtersApplied = true; // Mark that filters have been applied
|
|
7366
7374
|
this.showDropdown = false;
|
|
7375
|
+
this.loadingUnderwriters = false; // Reset loading state when closing
|
|
7367
7376
|
this.originalFilters = null; // Clear stored state after applying
|
|
7368
7377
|
this.filters = this.filterService.getFilters();
|
|
7369
7378
|
}
|
|
@@ -7407,6 +7416,7 @@ class QueueFilterDropdownComponent {
|
|
|
7407
7416
|
// Only restore original filters if no filters have been applied yet
|
|
7408
7417
|
this.filterService.setAllFilters(this.originalFilters);
|
|
7409
7418
|
}
|
|
7419
|
+
this.loadingUnderwriters = false; // Reset loading state when closing without applying
|
|
7410
7420
|
this.originalFilters = null;
|
|
7411
7421
|
}
|
|
7412
7422
|
onDocumentClick(event) {
|