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