mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-23 23:31:33 +01:00
Merge pull request #7011 from jwangyangls/fix_6950
fix 6950 about the default option is not displayed When we click the add-member button, the default option is not displayed.
This commit is contained in:
commit
b3c4d1688d
@ -153,6 +153,8 @@ export class AddMemberComponent implements AfterViewChecked, OnInit, OnDestroy {
|
|||||||
.addUserMember(this.projectId, {username: this.member.entity_name}, +this.member.role_id).pipe(
|
.addUserMember(this.projectId, {username: this.member.entity_name}, +this.member.role_id).pipe(
|
||||||
finalize(() => {
|
finalize(() => {
|
||||||
this.addMemberOpened = false;
|
this.addMemberOpened = false;
|
||||||
|
this.member.role_id = null;
|
||||||
|
|
||||||
let changeTimer = setInterval(() => this.ref.detectChanges(), 200);
|
let changeTimer = setInterval(() => this.ref.detectChanges(), 200);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
clearInterval(changeTimer);
|
clearInterval(changeTimer);
|
||||||
|
Loading…
Reference in New Issue
Block a user