mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
18 lines
416 B
Ruby
18 lines
416 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ConfirmModalComponent < ModalComponent
|
|
def initialize(id:, confirm_actions: nil, controllers: nil, message: nil, confirm_reflexes: nil)
|
|
super(id: id, close_button: true)
|
|
@confirm_actions = confirm_actions
|
|
@confirm_reflexes = confirm_reflexes
|
|
@controllers = controllers
|
|
@message = message
|
|
end
|
|
|
|
private
|
|
|
|
def close_button_class
|
|
"secondary"
|
|
end
|
|
end
|