Skip to content

Commit 78e9e2b

Browse files
committed
Display element icon if present
1 parent b29fd79 commit 78e9e2b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/views/alchemy/admin/elements/_header.html.erb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
<% elsif element.deprecated? %>
66
<%= hint_with_tooltip element.deprecation_notice %>
77
<% else %>
8-
<%= render_icon('draggable', style: false, class: 'element', fixed_width: false) %>
8+
<% if element.definition.icon %>
9+
<span class="icon element">
10+
<%= element.definition.icon_file %>
11+
</span>
12+
<% else %>
13+
<%= render_icon('draggable', style: false, class: 'element', fixed_width: false) %>
14+
<% end %>
915
<% end %>
1016
</span>
1117
<span class="element-title">

0 commit comments

Comments
 (0)