Skip to content

A platform for community discussion. Free, open, simple.

FIX: Unable to add new webhook if the webhooks list is empty

Vinoth Kannan9cc7df13a4f4
diff --git a/app/assets/javascripts/admin/templates/web-hooks.hbs b/app/assets/javascripts/admin/templates/web-hooks.hbs
index 6d613f1bb9f..6a5c57f7dcd 100644
--- a/app/assets/javascripts/admin/templates/web-hooks.hbs
+++ b/app/assets/javascripts/admin/templates/web-hooks.hbs
@@ -1,12 +1,12 @@
<div class='web-hooks-listing'>
-{{#if model}}
<p>{{i18n 'admin.web_hooks.instruction'}}</p>
<div class='new-webhook'>
- {{#link-to 'adminWebHooks.show' 'new' tagName='button' classNames='btn'}}
- {{d-icon 'plus'}} {{i18n 'admin.web_hooks.new'}}
- {{/link-to}}
-</div>
+ {{#link-to 'adminWebHooks.show' 'new' tagName='button' classNames='btn'}}
+ {{d-icon 'plus'}} {{i18n 'admin.web_hooks.new'}}
+ {{/link-to}}
+ </div>
+{{#if model}}
{{#load-more selector=".web-hooks tr" action="loadMore"}}
<table class='web-hooks grid'>
<thead>