views/mdc/components/buttons/fab.erb in voom-presenters-0.2.0 vs views/mdc/components/buttons/fab.erb in voom-presenters-2.0.0
- old
+ new
@@ -4,17 +4,18 @@
data_attributes = '' unless local_variables.include? :data_attributes
%>
<button id="<%= comp.id %>"
<%= data_attributes %>
- class="mdc-fab material-icons v-fab--absolute v-js-ripple-button
+ data-disabled-on-post-finished="<%= comp.disabled_on_post_finished %>"
+ class="v-button v-button--fab mdc-fab material-icons v-fab--absolute
<%= 'v-hidden' if comp.hidden %>
<%= class_name %>
<%= position_classes %>
<%= 'mdc-fab--mini' if eq(comp.size, :small) %>"
aria-label="<%= inflector.humanize(comp.icon.icon) %>"
<%= 'disabled' if comp.disabled %>
- <%= erb :"components/event", :locals => {events: comp.events, parent_id: event_parent_id || comp.event_parent_id} unless comp.disabled %>>
+ <%= erb :"components/event", :locals => {comp: comp, events: comp.events, parent_id: event_parent_id || comp.event_parent_id} %>>
<span class="mdc-fab__icon">
<%= comp.icon.icon %>
</span>
</button>
<%= erb :"components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} %>