Clear errors on cancel new webhook form [SCI-6015]

This commit is contained in:
aignatov-bio 2021-08-19 13:42:42 +02:00
parent 7f122e56f2
commit 1b44d49983

View file

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