From 9cc7df13a4f455ad2f19d38e88c204117b67331d Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Wed, 4 Jul 2018 09:48:11 +0530 Subject: [PATCH] FIX: Unable to add new webhook if the webhooks list is empty --- app/assets/javascripts/admin/templates/web-hooks.hbs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 @@
-{{#if model}}

{{i18n 'admin.web_hooks.instruction'}}

- {{#link-to 'adminWebHooks.show' 'new' tagName='button' classNames='btn'}} - {{d-icon 'plus'}} {{i18n 'admin.web_hooks.new'}} - {{/link-to}} -
+ {{#link-to 'adminWebHooks.show' 'new' tagName='button' classNames='btn'}} + {{d-icon 'plus'}} {{i18n 'admin.web_hooks.new'}} + {{/link-to}} +
+{{#if model}} {{#load-more selector=".web-hooks tr" action="loadMore"}}