Sha256: ea7ef689ec91ad03d42587da461fdc69af3595efc65e6729c05cab3a02f6651f

Contents?: true

Size: 317 Bytes

Versions: 17

Compression:

Stored size: 317 Bytes

Contents

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

          if args[:item].present?
            @label = I18n.t("avo.create_new_item", item: args[:item]) if label.nil?
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
avo-3.0.0.pre17 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre14 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre16 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre15 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre13 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre12 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre10 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre11 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre8 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre9 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre7 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre5 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre6 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre4 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre3 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre2 lib/avo/resources/controls/create_button.rb
avo-3.0.0.pre1 lib/avo/resources/controls/create_button.rb