Class: Decidim::Proposals::IrreversibleActionModalCell

Inherits:
ViewModel
  • Object
show all
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

#showObject



11
12
13
14
15
# File 'app/cells/decidim/proposals/irreversible_action_modal_cell.rb', line 11

def show
  return unless action.presence

  render :show
end