diff --git a/static/js/webhook.js b/static/js/webhook.js index 7a07435e..9b22b380 100644 --- a/static/js/webhook.js +++ b/static/js/webhook.js @@ -1,4 +1,7 @@ $(function() { + $(".webhook_header_btn:first").addClass("btn-info").text("+") + $(".webhook_header_btn:not(:first)").addClass("btn-danger").text("X") + $("#webhook_headers").on("click", ".webhook_header_btn.btn-danger", function(e) { e.preventDefault(); $(this).closest("div.row").remove(); diff --git a/templates/integrations/add_webhook.html b/templates/integrations/add_webhook.html index c9d3c338..4291a041 100644 --- a/templates/integrations/add_webhook.html +++ b/templates/integrations/add_webhook.html @@ -108,6 +108,23 @@