mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-04 15:08:21 +01:00
Clear inlineAlert when reopen create project;change add robot error handle
clear inlineAlert when reopen create project;change add robot error handle Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
parent
47f24cab4b
commit
dfbc7b4f8c
@ -135,6 +135,7 @@ export class CreateProjectComponent implements OnInit, OnDestroy {
|
|||||||
this.isNameValid = true;
|
this.isNameValid = true;
|
||||||
|
|
||||||
this.createProjectOpened = true;
|
this.createProjectOpened = true;
|
||||||
|
this.inlineAlert.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
public get isValid(): boolean {
|
public get isValid(): boolean {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<clr-modal [(clrModalOpen)]="addRobotOpened"
|
<clr-modal [(clrModalOpen)]="addRobotOpened"
|
||||||
[clrModalStaticBackdrop]="staticBackdrop" [clrModalClosable]="closable">
|
[clrModalStaticBackdrop]="staticBackdrop" [clrModalClosable]="closable">
|
||||||
<h3 class="modal-title">{{'ROBOT_ACCOUNT.CREAT_ROBOT_ACCOUNT' | translate}}</h3>
|
<h3 class="modal-title">{{'ROBOT_ACCOUNT.CREAT_ROBOT_ACCOUNT' | translate}}</h3>
|
||||||
|
<inline-alert #copyAlert class="modal-title"></inline-alert>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form #robotForm="ngForm">
|
<form #robotForm="ngForm">
|
||||||
<section class="form-block">
|
<section class="form-block">
|
||||||
|
@ -103,6 +103,7 @@ export class AddRobotComponent implements OnInit, OnDestroy {
|
|||||||
this.isRobotNameValid = true;
|
this.isRobotNameValid = true;
|
||||||
this.robot = new Robot();
|
this.robot = new Robot();
|
||||||
this.nameTooltipText = "ROBOT_ACCOUNT.ROBOT_NAME";
|
this.nameTooltipText = "ROBOT_ACCOUNT.ROBOT_NAME";
|
||||||
|
this.copyAlert.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
onCancel(): void {
|
onCancel(): void {
|
||||||
@ -143,7 +144,7 @@ export class AddRobotComponent implements OnInit, OnDestroy {
|
|||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
this.isSubmitOnGoing = false;
|
this.isSubmitOnGoing = false;
|
||||||
this.errorHandler.error(error);
|
this.copyAlert.showInlineError(error);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user