Class: Decidim::Proposals::CoauthorInvitedEvent
- Inherits:
-
Events::SimpleEvent
- Object
- Events::SimpleEvent
- Decidim::Proposals::CoauthorInvitedEvent
- Includes:
- Events::CoauthorEvent
- Defined in:
- app/events/decidim/proposals/coauthor_invited_event.rb
Instance Method Summary collapse
Instance Method Details
#action_cell ⇒ Object
9 10 11 |
# File 'app/events/decidim/proposals/coauthor_invited_event.rb', line 9 def action_cell "decidim/notification_actions/buttons" unless end |
#action_data ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/events/decidim/proposals/coauthor_invited_event.rb', line 13 def action_data [ { i18n_label: "decidim.events.proposals.coauthor_invited.actions.accept", url: invite_path, icon: "check-line", method: "patch" }, { i18n_label: "decidim.events.proposals.coauthor_invited.actions.decline", url: invite_path, icon: "close-circle-line", method: "delete" } ] end |
#resource_url ⇒ Object
30 31 32 |
# File 'app/events/decidim/proposals/coauthor_invited_event.rb', line 30 def resource_url notifications_url(host: component.organization.host) end |