mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 22:57:38 +01:00
Fix webhook testing-error bug
Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
parent
75aa29d23e
commit
71a5d24633
@ -77,9 +77,9 @@ export class AddWebhookFormComponent implements OnInit, OnChanges {
|
|||||||
if (this.isModify) {
|
if (this.isModify) {
|
||||||
this.inlineAlert.showInlineError("WEBHOOK.TEST_ENDPOINT_FAILURE");
|
this.inlineAlert.showInlineError("WEBHOOK.TEST_ENDPOINT_FAILURE");
|
||||||
} else {
|
} else {
|
||||||
this.checkBtnState = ClrLoadingState.DEFAULT;
|
|
||||||
this.messageHandlerService.handleError(error);
|
this.messageHandlerService.handleError(error);
|
||||||
}
|
}
|
||||||
|
this.checkBtnState = ClrLoadingState.DEFAULT;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -87,6 +87,7 @@ export class AddWebhookFormComponent implements OnInit, OnChanges {
|
|||||||
onCancel() {
|
onCancel() {
|
||||||
this.close.emit(false);
|
this.close.emit(false);
|
||||||
this.currentForm.reset();
|
this.currentForm.reset();
|
||||||
|
this.inlineAlert.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
@ -101,6 +102,7 @@ export class AddWebhookFormComponent implements OnInit, OnChanges {
|
|||||||
.subscribe(
|
.subscribe(
|
||||||
response => {
|
response => {
|
||||||
this.edit.emit(this.isModify);
|
this.edit.emit(this.isModify);
|
||||||
|
this.inlineAlert.close();
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
this.isModify
|
this.isModify
|
||||||
|
@ -16,7 +16,7 @@ import { AddWebhookFormComponent } from "../add-webhook-form/add-webhook-form.co
|
|||||||
})
|
})
|
||||||
export class AddWebhookComponent implements OnInit {
|
export class AddWebhookComponent implements OnInit {
|
||||||
isOpen: boolean = false;
|
isOpen: boolean = false;
|
||||||
closable: boolean = true;
|
closable: boolean = false;
|
||||||
staticBackdrop: boolean = true;
|
staticBackdrop: boolean = true;
|
||||||
|
|
||||||
@Input() projectId: number;
|
@Input() projectId: number;
|
||||||
|
Loading…
Reference in New Issue
Block a user