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:
jwangyangls 2019-02-28 14:07:07 +08:00 committed by GitHub
commit b3c4d1688d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,6 +153,8 @@ export class AddMemberComponent implements AfterViewChecked, OnInit, OnDestroy {
.addUserMember(this.projectId, {username: this.member.entity_name}, +this.member.role_id).pipe(
finalize(() => {
this.addMemberOpened = false;
this.member.role_id = null;
let changeTimer = setInterval(() => this.ref.detectChanges(), 200);
setTimeout(() => {
clearInterval(changeTimer);