Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Differentiate clone button color

Damian Legawiec84f4b970293b
diff --git a/backend/app/helpers/spree/admin/navigation_helper.rb b/backend/app/helpers/spree/admin/navigation_helper.rb
index 1f79b6fab1..b5b8d02e90 100644
--- a/backend/app/helpers/spree/admin/navigation_helper.rb
+++ b/backend/app/helpers/spree/admin/navigation_helper.rb
@@ -130,7 +130,7 @@ module Spree
def link_to_clone(resource, options = {})
options[:data] = { action: 'clone', 'original-title': Spree.t(:clone) }
- options[:class] = 'btn btn-primary btn-sm with-tip'
+ options[:class] = 'btn btn-warning btn-sm with-tip'
options[:method] = :post
options[:icon] = 'clone.svg'
button_link_to '', clone_object_url(resource), options