From 1b44d499833138ea53da9433b627890ebb1725c8 Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Thu, 19 Aug 2021 13:42:42 +0200 Subject: [PATCH] Clear errors on cancel new webhook form [SCI-6015] --- app/assets/javascripts/users/settings/webhooks/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/users/settings/webhooks/index.js b/app/assets/javascripts/users/settings/webhooks/index.js index c411a43c4..555b86a0d 100644 --- a/app/assets/javascripts/users/settings/webhooks/index.js +++ b/app/assets/javascripts/users/settings/webhooks/index.js @@ -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); });