Sha256: ebbdf7573636f8a542773b269c27d5a448a4308cd27f89be1c333fc78512ac0e

Contents?: true

Size: 445 Bytes

Versions: 114

Compression:

Stored size: 445 Bytes

Contents

module Avo
  module Resources
    module Controls
      class DetachButton < BaseControl
        def initialize(**args)
          super(**args)

          if args[:item].present?
            @title = I18n.t("avo.detach_item", item: args[:item]).humanize if title.nil?
            @confirmation_message = I18n.t("avo.are_you_sure_detach_item", item: args[:item]) if confirmation_message.nil?
          end
        end
      end
    end
  end
end

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
avo-3.14.3 lib/avo/resources/controls/detach_button.rb
avo-3.14.2 lib/avo/resources/controls/detach_button.rb
avo-3.14.1 lib/avo/resources/controls/detach_button.rb
avo-3.14.0 lib/avo/resources/controls/detach_button.rb
avo-3.13.7 lib/avo/resources/controls/detach_button.rb
avo-3.13.6 lib/avo/resources/controls/detach_button.rb
avo-3.13.5 lib/avo/resources/controls/detach_button.rb
avo-3.13.4 lib/avo/resources/controls/detach_button.rb
avo-3.13.3 lib/avo/resources/controls/detach_button.rb
avo-3.13.2 lib/avo/resources/controls/detach_button.rb
avo-3.13.1 lib/avo/resources/controls/detach_button.rb
avo-3.13.0 lib/avo/resources/controls/detach_button.rb
avo-3.12.0 lib/avo/resources/controls/detach_button.rb
avo-3.11.10 lib/avo/resources/controls/detach_button.rb
avo-3.11.9 lib/avo/resources/controls/detach_button.rb
avo-3.11.8 lib/avo/resources/controls/detach_button.rb
avo-3.11.7 lib/avo/resources/controls/detach_button.rb
avo-3.11.6 lib/avo/resources/controls/detach_button.rb
avo-3.11.5 lib/avo/resources/controls/detach_button.rb
avo-3.11.4 lib/avo/resources/controls/detach_button.rb