Commit dfbc7b4f authored by Yogi_Wang's avatar Yogi_Wang
Browse files

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: default avatarYogi_Wang <yawang@vmware.com>
parent 47f24cab
......@@ -135,6 +135,7 @@ export class CreateProjectComponent implements OnInit, OnDestroy {
this.isNameValid = true;
this.createProjectOpened = true;
this.inlineAlert.close();
}
public get isValid(): boolean {
......
<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);
}
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment