@alfresco/adf-process-services-cloud 9.2.0-30818912299 → 9.2.0-30825573264
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.
|
@@ -3449,6 +3449,8 @@ class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent {
|
|
|
3449
3449
|
/** Emitted when filter is updated. */
|
|
3450
3450
|
this.updatedFilter = new EventEmitter();
|
|
3451
3451
|
this.filters = [];
|
|
3452
|
+
this.enableNotifications = true;
|
|
3453
|
+
this.notificationDebounceTime = 3000;
|
|
3452
3454
|
this.currentFiltersValues = {};
|
|
3453
3455
|
this.taskFilterCloudService = inject(TaskFilterCloudService);
|
|
3454
3456
|
this.taskListCloudService = inject(TaskListCloudService);
|
|
@@ -3459,6 +3461,7 @@ class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent {
|
|
|
3459
3461
|
}
|
|
3460
3462
|
ngOnInit() {
|
|
3461
3463
|
this.enableNotifications = this.appConfigService.get('notifications', true);
|
|
3464
|
+
this.notificationDebounceTime = this.appConfigService.get('notificationDebounceTime', 3000);
|
|
3462
3465
|
this.getFilters(this.appName);
|
|
3463
3466
|
this.initFilterCounterNotifications();
|
|
3464
3467
|
this.getFilterKeysAfterExternalRefreshing();
|
|
@@ -3538,7 +3541,7 @@ class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent {
|
|
|
3538
3541
|
if (this.enableNotifications) {
|
|
3539
3542
|
this.taskFilterCloudService
|
|
3540
3543
|
.getTaskNotificationSubscription(this.appName)
|
|
3541
|
-
.pipe(debounceTime(
|
|
3544
|
+
.pipe(debounceTime(this.notificationDebounceTime), takeUntilDestroyed(this.destroyRef))
|
|
3542
3545
|
.subscribe((result) => {
|
|
3543
3546
|
result.forEach((taskEvent) => {
|
|
3544
3547
|
this.checkFilterCounter(taskEvent.entity);
|
|
@@ -11390,6 +11393,8 @@ class ProcessFiltersCloudComponent {
|
|
|
11390
11393
|
this.updatedFilter = new EventEmitter();
|
|
11391
11394
|
this.filters = [];
|
|
11392
11395
|
this.counters = {};
|
|
11396
|
+
this.enableNotifications = true;
|
|
11397
|
+
this.notificationDebounceTime = 3000;
|
|
11393
11398
|
this.currentFiltersValues = {};
|
|
11394
11399
|
this.updatedFiltersSet = new Set();
|
|
11395
11400
|
this.destroyRef = inject(DestroyRef);
|
|
@@ -11402,6 +11407,7 @@ class ProcessFiltersCloudComponent {
|
|
|
11402
11407
|
}
|
|
11403
11408
|
ngOnInit() {
|
|
11404
11409
|
this.enableNotifications = this.appConfigService.get('notifications', true);
|
|
11410
|
+
this.notificationDebounceTime = this.appConfigService.get('notificationDebounceTime', 3000);
|
|
11405
11411
|
if (this.appName === '') {
|
|
11406
11412
|
this.getFilters(this.appName);
|
|
11407
11413
|
}
|
|
@@ -11550,7 +11556,7 @@ class ProcessFiltersCloudComponent {
|
|
|
11550
11556
|
if (this.appName && this.enableNotifications) {
|
|
11551
11557
|
this.processFilterCloudService
|
|
11552
11558
|
.getProcessNotificationSubscription(this.appName)
|
|
11553
|
-
.pipe(debounceTime(
|
|
11559
|
+
.pipe(debounceTime(this.notificationDebounceTime), takeUntilDestroyed(this.destroyRef))
|
|
11554
11560
|
.subscribe(() => {
|
|
11555
11561
|
this.updateFilterCounters();
|
|
11556
11562
|
});
|