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.

Added missing top save button tag for store settings

Damian Legawiec8f3fb6080273
diff --git a/admin/app/views/spree/admin/shared/_content_header.html.erb b/admin/app/views/spree/admin/shared/_content_header.html.erb
index 7f04d1dba9..335464a742 100644
--- a/admin/app/views/spree/admin/shared/_content_header.html.erb
+++ b/admin/app/views/spree/admin/shared/_content_header.html.erb
@@ -11,7 +11,7 @@
<h3 class="page-header-title mb-0 d-flex align-items-center gap-3">
<%= yield :page_title %>
</h3>
- <div id="page_actions" class="ml-auto page-actions d-flex align-items-center gap-3">
+ <div id="page_actions" class="ml-auto page-actions d-flex align-items-center gap-2">
<% if action_name == 'index' && defined?(model_class) && model_class && Spree::Export.available_models.include?(model_class) && can?(:create, Spree::Export) %>
<span data-toggle="modal" data-target="#modal">
<%= link_to spree.new_admin_export_path(export: { search_params: params[:q]&.to_json, type: Spree::Export.type_for_model(model_class) }), class: 'btn btn-light bg-transparent with-tip', title: 'Download records as CSV file', data: { turbo_frame: :dialog_modal } do %>
diff --git a/admin/app/views/spree/admin/stores/edit.html.erb b/admin/app/views/spree/admin/stores/edit.html.erb
index ebb9e662bb..764e8d111e 100644
--- a/admin/app/views/spree/admin/stores/edit.html.erb
+++ b/admin/app/views/spree/admin/stores/edit.html.erb
@@ -1,6 +1,6 @@
-<% content_for :head do %>
- <script type="text/javascript" src="https://cdn.goentri.com/entri.js"></script>
-<% end if entri_enabled? %>
+<%= content_for :page_actions do %>
+ <%= turbo_save_button_tag Spree.t('actions.update'), class: 'btn btn-primary', form: "edit_store_#{current_store.id}" %>
+<% end %>
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @store }, class: 'mb-5 pb-5' %>