mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-03 14:37:44 +01:00
fix add-member nightly case failure
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
e2a19d8ab9
commit
aab50ab642
@ -105,6 +105,7 @@ export class AddMemberComponent implements AfterViewChecked, OnInit, OnDestroy {
|
|||||||
this.isMemberNameValid = cont.valid;
|
this.isMemberNameValid = cont.valid;
|
||||||
if (cont.valid) {
|
if (cont.valid) {
|
||||||
this.checkOnGoing = true;
|
this.checkOnGoing = true;
|
||||||
|
this.ref.detectChanges();
|
||||||
forkJoin(this.userService.getUsersNameList(cont.value, 20), this.memberService
|
forkJoin(this.userService.getUsersNameList(cont.value, 20), this.memberService
|
||||||
.listMembers(this.projectId, cont.value)).subscribe((res: Array<any>) => {
|
.listMembers(this.projectId, cont.value)).subscribe((res: Array<any>) => {
|
||||||
this.userLists = res[0];
|
this.userLists = res[0];
|
||||||
@ -122,13 +123,14 @@ export class AddMemberComponent implements AfterViewChecked, OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let changeTimer = setInterval(() => this.ref.detectChanges(), 200);
|
|
||||||
setTimeout(() => {
|
|
||||||
clearInterval(changeTimer);
|
|
||||||
}, 2000);
|
|
||||||
}
|
}
|
||||||
|
let changeTimer = setInterval(() => this.ref.detectChanges(), 200);
|
||||||
|
setTimeout(() => {
|
||||||
|
clearInterval(changeTimer);
|
||||||
|
}, 2000);
|
||||||
}, error => {
|
}, error => {
|
||||||
this.checkOnGoing = false;
|
this.checkOnGoing = false;
|
||||||
|
this.ref.detectChanges();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.memberTooltip = 'MEMBER.USERNAME_IS_REQUIRED';
|
this.memberTooltip = 'MEMBER.USERNAME_IS_REQUIRED';
|
||||||
|
Loading…
Reference in New Issue
Block a user