5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 04:46:22 +00:00
panel/app/views/components/_comments_checked_submenu.haml
2024-03-08 13:08:24 -03:00

9 lines
408 B
Text

-#
@param form [String]
- current_state = params[:activity_pub_state]&.to_sym || ActivityPub.states.first
- ActivityPub.aasm.events.each do |event|
- next if ActivityPub::IGNORED_EVENTS.include? event.name
- next unless event.transitions_from_state?(current_state)
= render 'components/dropdown_button', form: form, text: t(".submenu_#{event.name}"), name: 'activity_pub_action', value: event.name