Merge pull request #9864 from jwangyangls/fix-webhook-modal

Fix webhook testing-error bug
This commit is contained in:
jwangyangls 2019-11-14 19:11:40 +08:00 committed by GitHub
commit 01ca8a7a36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -77,9 +77,9 @@ export class AddWebhookFormComponent implements OnInit, OnChanges {
if (this.isModify) {
this.inlineAlert.showInlineError("WEBHOOK.TEST_ENDPOINT_FAILURE");
} else {
this.checkBtnState = ClrLoadingState.DEFAULT;
this.messageHandlerService.handleError(error);
}
this.checkBtnState = ClrLoadingState.DEFAULT;
}
);
}
@ -87,6 +87,7 @@ export class AddWebhookFormComponent implements OnInit, OnChanges {
onCancel() {
this.close.emit(false);
this.currentForm.reset();
this.inlineAlert.close();
}
onSubmit() {
@ -101,6 +102,7 @@ export class AddWebhookFormComponent implements OnInit, OnChanges {
.subscribe(
response => {
this.edit.emit(this.isModify);
this.inlineAlert.close();
},
error => {
this.isModify

View File

@ -16,7 +16,7 @@ import { AddWebhookFormComponent } from "../add-webhook-form/add-webhook-form.co
})
export class AddWebhookComponent implements OnInit {
isOpen: boolean = false;
closable: boolean = true;
closable: boolean = false;
staticBackdrop: boolean = true;
@Input() projectId: number;