Sha256: b29c8ce2018cecd9fa6e199d107abb773ea44442107829a39bbea232a60b1644
Contents?: true
Size: 483 Bytes
Versions: 17
Compression:
Stored size: 483 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]).capitalize if title.nil? @confirmation_message = I18n.t("avo.are_you_sure") if confirmation_message.nil? end end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems