Class: Decidim::Proposals::IrreversibleActionModalCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::Proposals::IrreversibleActionModalCell
- Defined in:
- app/cells/decidim/proposals/irreversible_action_modal_cell.rb
Overview
This cell renders the button and modal for the publish/withdraw actions in the details of a collaborative draft the ‘cell` should be called with an :action argument, to show relative info:
-
:publish
-
:withdraw
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
11 12 13 14 |
# File 'app/cells/decidim/proposals/irreversible_action_modal_cell.rb', line 11 def show return unless action.presence render :show end |