Sha256: 3e468d156404bf181e5d1e0580e87acd0ae337eb346f6e2002213957da55b3e2

Contents?: true

Size: 481 Bytes

Versions: 114

Compression:

Stored size: 481 Bytes

Contents

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

          @label = args[:label] || I18n.t("avo.delete").capitalize
          if args[:item].present?
            @title = I18n.t("avo.delete_item", item: args[:item]).humanize if title.nil?
            @confirmation_message = I18n.t("avo.are_you_sure") if confirmation_message.nil?
          end
        end
      end
    end
  end
end

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
avo-3.0.1.beta12 lib/avo/resources/controls/delete_button.rb
avo-3.0.1.beta13 lib/avo/resources/controls/delete_button.rb
avo-3.0.1.beta10 lib/avo/resources/controls/delete_button.rb
avo-3.0.1.beta11 lib/avo/resources/controls/delete_button.rb
avo-3.0.0.pre19 lib/avo/resources/controls/delete_button.rb
avo-3.0.1.beta8 lib/avo/resources/controls/delete_button.rb
avo-3.0.1.beta9 lib/avo/resources/controls/delete_button.rb
avo-3.0.1.beta6 lib/avo/resources/controls/delete_button.rb
avo-3.0.1.beta7 lib/avo/resources/controls/delete_button.rb
avo-3.0.1.beta5 lib/avo/resources/controls/delete_button.rb
avo-3.0.1.beta2 lib/avo/resources/controls/delete_button.rb
avo-3.0.1.beta4 lib/avo/resources/controls/delete_button.rb
avo-3.0.1.beta3 lib/avo/resources/controls/delete_button.rb
avo-3.0.0.beta1 lib/avo/resources/controls/delete_button.rb
avo-3.0.1.beta1 lib/avo/resources/controls/delete_button.rb
avo-3.0.0.pre18 lib/avo/resources/controls/delete_button.rb
avo-3.2.2 lib/avo/resources/controls/delete_button.rb
avo-3.2.1 lib/avo/resources/controls/delete_button.rb
avo-3.2.0 lib/avo/resources/controls/delete_button.rb
avo-3.1.7 lib/avo/resources/controls/delete_button.rb