app/views/promethee/components/aside/_edit.define.html.erb in promethee-1.6.10 vs app/views/promethee/components/aside/_edit.define.html.erb in promethee-1.6.11
- old
+ new
@@ -1,11 +1,12 @@
<%
init = <<~JAVASCRIPT
promethee.definitions.push({
name: 'Aside',
- icon: #{render('promethee/components/aside/icon').to_json.html_safe},
+ icon: #{ promethee_component_render_icon 'aside' },
position: 30,
+ library: true,
data: {
type: 'aside',
attributes: {
visible_content: '<p>Edit me</p>',
collapsed_content: '',
@@ -14,7 +15,6 @@
children: []
}
})
JAVASCRIPT
%>
-
-<%= content_tag :div, nil, 'ng-init': init %>
+<div ng-init="<%= init %>"></div>
\ No newline at end of file