mirror of
https://github.com/goharbor/harbor.git
synced 2024-07-08 04:44:50 +02:00
Merge pull request #4206 from ninjadq/open_add_member_modal_too_long
Fix bug open add member modal time too long
This commit is contained in:
commit
3b36236dc0
|
@ -46,7 +46,7 @@ import {Project} from "../../project";
|
||||||
templateUrl: 'add-member.component.html',
|
templateUrl: 'add-member.component.html',
|
||||||
styleUrls: ['add-member.component.css'],
|
styleUrls: ['add-member.component.css'],
|
||||||
providers: [UserService],
|
providers: [UserService],
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush
|
changeDetection: ChangeDetectionStrategy.Default
|
||||||
})
|
})
|
||||||
export class AddMemberComponent implements AfterViewChecked, OnInit, OnDestroy {
|
export class AddMemberComponent implements AfterViewChecked, OnInit, OnDestroy {
|
||||||
|
|
||||||
|
@ -225,6 +225,7 @@ export class AddMemberComponent implements AfterViewChecked, OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
openAddMemberModal(): void {
|
openAddMemberModal(): void {
|
||||||
|
this.currentForm.reset();
|
||||||
this.member = new Member();
|
this.member = new Member();
|
||||||
this.addMemberOpened = true;
|
this.addMemberOpened = true;
|
||||||
this.hasChanged = false;
|
this.hasChanged = false;
|
||||||
|
@ -233,9 +234,6 @@ export class AddMemberComponent implements AfterViewChecked, OnInit, OnDestroy {
|
||||||
this.isMemberNameValid = true;
|
this.isMemberNameValid = true;
|
||||||
this.memberTooltip = 'MEMBER.USERNAME_IS_REQUIRED';
|
this.memberTooltip = 'MEMBER.USERNAME_IS_REQUIRED';
|
||||||
this.selectUserName = [];
|
this.selectUserName = [];
|
||||||
setTimeout(() => {
|
|
||||||
setInterval(() => this.ref.markForCheck(), 200);
|
|
||||||
}, 2000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handleValidation(): void {
|
handleValidation(): void {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user