Sha256: f7d43ede0cc7d303144a7db16d507dcb6a5e3eeea411d19a0f50d9021370eb42

Contents?: true

Size: 443 Bytes

Versions: 3

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

class SolidusAdmin::Orders::Show::Adjustments::Index::Source::SpreePromotionAction::Component < SolidusAdmin::Orders::Show::Adjustments::Index::Source::Component
  def icon
    "megaphone-line"
  end

  def detail
    link_to("#{model_name}: #{promotion_name}", spree.edit_admin_promotion_path(adjustment.source_id), class: "body-link")
  end

  private

  def promotion_name
    source.promotion.name
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_legacy_promotions-4.4.2 lib/components/admin/solidus_admin/orders/show/adjustments/index/source/spree_promotion_action/component.rb
solidus_legacy_promotions-4.4.1 lib/components/admin/solidus_admin/orders/show/adjustments/index/source/spree_promotion_action/component.rb
solidus_legacy_promotions-4.4.0 lib/components/admin/solidus_admin/orders/show/adjustments/index/source/spree_promotion_action/component.rb