cat-qw-lib 2.6.64 → 2.6.65
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
|
@@ -8398,7 +8398,8 @@ class QueueContainerComponent extends BaseContainerComponent {
|
|
|
8398
8398
|
});
|
|
8399
8399
|
filterQueryString = existingParams.toString();
|
|
8400
8400
|
}
|
|
8401
|
-
|
|
8401
|
+
const apiUrl = this.replaceWithLocalhost(this.selectedQueue.apiConfig);
|
|
8402
|
+
this.queueService.getPaginatedQueueRecords(apiUrl, this.currentSearchTerm, targetPage, targetLimit, filterQueryString, this.sortBy, this.getSortOrderString(this.sortOrder), !forceRefresh).pipe(finalize(() => {
|
|
8402
8403
|
if (this.latestRequestSnapshot === requestSnapshot) {
|
|
8403
8404
|
this.isShowSkeleton = false;
|
|
8404
8405
|
}
|
|
@@ -8456,6 +8457,17 @@ class QueueContainerComponent extends BaseContainerComponent {
|
|
|
8456
8457
|
}
|
|
8457
8458
|
});
|
|
8458
8459
|
}
|
|
8460
|
+
replaceWithLocalhost(url) {
|
|
8461
|
+
try {
|
|
8462
|
+
const parsed = new URL(url);
|
|
8463
|
+
parsed.host = 'localhost:3300';
|
|
8464
|
+
parsed.protocol = 'http:'; // ensure localhost uses http
|
|
8465
|
+
return parsed.toString();
|
|
8466
|
+
}
|
|
8467
|
+
catch (e) {
|
|
8468
|
+
return url; // fallback if invalid URL
|
|
8469
|
+
}
|
|
8470
|
+
}
|
|
8459
8471
|
getSortOrderString(order) {
|
|
8460
8472
|
if (order === 1)
|
|
8461
8473
|
return 'asc';
|