[AAE-0000] - fixed run for process-service-cloud (#11855)

* [AAE-0000] - fixed run for process-service-cloud

* [AAE-0000] - Stabilising process cloud tests
This commit is contained in:
Vito Albano
2026-05-04 23:35:25 +01:00
committed by GitHub
parent d6262eafc6
commit 0faa2e1a56
11 changed files with 62 additions and 31 deletions
@@ -169,9 +169,13 @@ export class GroupCloudComponent implements OnInit, OnChanges {
ngOnInit(): void {
this.initSearch();
this.updateSearchControlState();
}
ngOnChanges(changes: SimpleChanges): void {
if (changes?.readOnly || changes?.validate) {
this.updateSearchControlState();
}
if (this.hasPreselectedGroupsChanged(changes) || this.hasModeChanged(changes) || this.isValidationChanged(changes)) {
if (this.hasPreSelectGroups()) {
this.loadPreSelectGroups();
@@ -312,8 +316,10 @@ export class GroupCloudComponent implements OnInit, OnChanges {
this.groupChipsCtrl.setValue(this.selectedGroups[0].name);
if (this.isValidationEnabled()) {
this.validationLoading = true;
this.updateSearchControlState();
await this.validatePreselectGroups();
this.validationLoading = false;
this.updateSearchControlState();
}
}
@@ -335,6 +341,7 @@ export class GroupCloudComponent implements OnInit, OnChanges {
this.groupChipsCtrlValue(this.selectedGroups[0].name);
this.changedGroups.emit(this.selectedGroups);
this.updateSearchControlState();
this.resetSearchGroups();
}
}
@@ -350,6 +357,7 @@ export class GroupCloudComponent implements OnInit, OnChanges {
}
this.searchGroupsControl.markAsDirty();
this.searchGroupsControl.markAsTouched();
this.updateSearchControlState();
if (this.isValidationEnabled()) {
this.removeGroupFromValidation(groupToRemove);
@@ -445,6 +453,14 @@ export class GroupCloudComponent implements OnInit, OnChanges {
return this.readOnly || this.isSingleSelectionReadonly();
}
updateSearchControlState(): void {
if (this.isReadonly() || this.isValidationLoading()) {
this.searchGroupsControl.disable({ emitEvent: false });
} else {
this.searchGroupsControl.enable({ emitEvent: false });
}
}
getDisplayName(group: IdentityGroupModel): string {
return group?.name || '';
}