Skip to content

Commit

Permalink
Update settings menu label to social auth
Browse files Browse the repository at this point in the history
Issue #131
  • Loading branch information
rahulsingh321 committed Feb 3, 2025
1 parent 8053931 commit e4ed0d4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/views/spree/admin/authentication_methods/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% admin_breadcrumb(t('spree.settings')) %>
<% admin_breadcrumb(link_to I18n.t('spree.social_authentication_methods'), spree.admin_authentication_methods_path) %>
<% admin_breadcrumb(link_to I18n.t('spree.social_auth'), spree.admin_authentication_methods_path) %>

<% content_for :page_title do %>
<%= I18n.t('spree.edit_social_method') %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% admin_breadcrumb(t('spree.settings')) %>
<% admin_breadcrumb(I18n.t('spree.social_authentication_methods')) %>
<% admin_breadcrumb(I18n.t('spree.social_auth')) %>

<% content_for :page_actions do %>
<% if can? :manage, Spree::AuthenticationMethod %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/spree/admin/authentication_methods/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% admin_breadcrumb(t('spree.settings')) %>
<% admin_breadcrumb(link_to I18n.t('spree.social_authentication_methods'), spree.admin_authentication_methods_path) %>
<% admin_breadcrumb(link_to I18n.t('spree.social_auth'), spree.admin_authentication_methods_path) %>
<% admin_breadcrumb(t('spree.new_social_method')) %>

<%= render 'spree/shared/error_messages', target: @authentication_method %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

if settings_menu
settings_menu.children << config.class::MenuItem.new(
label: :social_authentication_methods,
label: :social_auth,
url: :admin_authentication_methods_path,
condition: -> { can?(:admin, Spree::AuthenticationMethod) }
)
Expand Down
6 changes: 3 additions & 3 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ en:
sign_in_through_one_of_these_services: "Sign in through one of these services:"
social_api_key: "API Key"
social_api_secret: "API Secret"
social_authentication_methods: "Social Authentication Methods"
social_authentication_methods_description: "Setup OAuth Authentication Methods"
social_auth: "Social Auth"
social_auth_description: "Setup OAuth Authentication Methods"
social_provider: "Social Provider"
please_confirm_your_email: "Please confirm your email address to continue"
sign_in_with: "Login with %{provider}"
you_have_signed_in_with_these_services: "You Have Signed In With These Services"
admin:
tab:
social_authentication_methods: "Social Authentication Methods"
social_auth: "Social Auth"
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
it 'has configuration tab' do
visit spree.admin_path
click_link 'Settings'
expect(page).to have_text(/Social Authentication Methods/i)
expect(page).to have_text(/Social Auth/i)
end
end

context 'when no auth methods exists' do
before do
visit spree.admin_path
click_link 'Settings'
click_link 'Social Authentication Methods'
click_link 'Social Auth'
end

it 'can create new' do
Expand Down Expand Up @@ -46,7 +46,7 @@
before do
visit spree.admin_path
click_link 'Settings'
click_link 'Social Authentication Methods'
click_link 'Social Auth'
end

it 'can be updated' do
Expand Down

0 comments on commit e4ed0d4

Please sign in to comment.