fix(widget): hide follow button if link is empty

This commit is contained in:
ppoffice 2019-09-27 13:02:03 -04:00
parent 8804d4612d
commit 5d7260c846
1 changed files with 2 additions and 0 deletions

View File

@ -69,10 +69,12 @@
</div>
</div>
</nav>
<% if (widget.follow_link) { %>
<div class="level">
<a class="level-item button is-link is-rounded" href="<%= url_for(widget.follow_link) %>" target="_blank">
<%= __('widget.follow') %></a>
</div>
<% } %>
<% const socialLinks = get_config_from_obj(widget, 'social_links'); %>
<% if (socialLinks !== null) { %>
<div class="level is-mobile">