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.

Improve JavaScript wording.

Matthew Kennedy6e8475c2e1b9
diff --git a/backend/app/assets/javascripts/spree/backend/cms/links.es6 b/backend/app/assets/javascripts/spree/backend/cms/links.es6
index 69b1109182..6b7ec8f475 100644
--- a/backend/app/assets/javascripts/spree/backend/cms/links.es6
+++ b/backend/app/assets/javascripts/spree/backend/cms/links.es6
@@ -2,12 +2,12 @@ document.addEventListener('DOMContentLoaded', function() {
const linkSwitcher = $('.link_switcher').select2()
linkSwitcher.on('change', function() {
- const selectedLinkTo = $(linkSwitcher).val()
+ const selectedLinkToValue = $(linkSwitcher).val()
const message = document.getElementById('linkClickUpdate')
const activePanel = document.querySelector('[data-panel-type]')
const panelType = activePanel.dataset.panelType
- if (selectedLinkTo === panelType) {
+ if (selectedLinkToValue === panelType) {
activePanel.classList = ''
activePanel.classList.add('d-block')
diff --git a/core/config/locales/en.yml b/core/config/locales/en.yml
index 5ed400b375..0dd13627df 100644
--- a/core/config/locales/en.yml
+++ b/core/config/locales/en.yml
@@ -584,8 +584,8 @@ en:
It is recommended that you create a default menu for each menu location."
allow_this_menu_item_to_contain_nested_menu_items: Allow this Menu Item to contain nested items
back_to_all_menus: Back To All Menus
- click_create_to_load_new_link: 'Click the <b>Create</b> button below to save your new Menu Item, and update the link.'
- click_update_to_load_new_link: 'Click the <b>Update</b> button below to change the link.'
+ click_create_to_load_new_link: 'Click the <b>Create</b> button below to change the link field.'
+ click_update_to_load_new_link: 'Click the <b>Update</b> button below to change the link field.'
give_your_menu_a_unique_name: 'Use the unique code to identify your menu: spree-eu-main'
link_settings: Link Settings
link_to: Link To