Merge pull request #3495 from aignatov-bio/ai-sci-6015-clear-errors-on-new-webhook

Clear errors on cancel new webhook form [SCI-6015]
This commit is contained in:
artoscinote 2021-08-20 11:05:44 +02:00 committed by GitHub
commit c89384cf3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,7 @@
e.preventDefault(); e.preventDefault();
webhookContainer.addClass('hidden'); webhookContainer.addClass('hidden');
webhookContainer.find('.url-input').val(''); webhookContainer.find('.url-input').val('');
$('.webhook-form').renderFormErrors('webhook', [], true);
}); });
$('.activity-filters-list').on('click', '.edit-webhook', function(e) { $('.activity-filters-list').on('click', '.edit-webhook', function(e) {
@ -54,6 +55,7 @@
input.val(input.data('original-value')); input.val(input.data('original-value'));
webhookContainer.find('.view-mode').removeClass('hidden'); webhookContainer.find('.view-mode').removeClass('hidden');
webhookContainer.find('.edit-webhook-container').addClass('hidden'); webhookContainer.find('.edit-webhook-container').addClass('hidden');
$('.webhook-form').renderFormErrors('webhook', [], true);
}); });