cat-qw-lib 2.5.20 → 2.5.21
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
|
@@ -7268,7 +7268,9 @@ class QueueFilterDropdownComponent {
|
|
|
7268
7268
|
this.searchSubscription = this.searchSubject.pipe(debounceTime$1(300), distinctUntilChanged$1(), switchMap((searchKey) => {
|
|
7269
7269
|
return this.filterService.getUnderwritersList(searchKey || SHARED.EMPTY);
|
|
7270
7270
|
})).subscribe((underwriters) => {
|
|
7271
|
-
|
|
7271
|
+
// Add "Unassigned" option at the beginning of the list
|
|
7272
|
+
const unassignedOption = { id: 'unassigned', name: 'Unassigned' };
|
|
7273
|
+
this.underwriterOptions = [unassignedOption, ...underwriters];
|
|
7272
7274
|
this.loadingUnderwriters = false;
|
|
7273
7275
|
});
|
|
7274
7276
|
}
|
|
@@ -7361,6 +7363,8 @@ class QueueFilterDropdownComponent {
|
|
|
7361
7363
|
this.filtersApplied = false; // Reset the applied flag when clearing all
|
|
7362
7364
|
this.originalFilters = null; // Clear originalFilters to prevent restoring old filters
|
|
7363
7365
|
this.filters = this.filterService.getFilters();
|
|
7366
|
+
// Reload underwriter options when clearing
|
|
7367
|
+
this.loadInitialUnderwriters();
|
|
7364
7368
|
}
|
|
7365
7369
|
// Method to sync with container's applied filters
|
|
7366
7370
|
syncWithAppliedFilters(appliedFilters) {
|