Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SD-824] Corrects color presentation in admin panel #10012

Merged

Conversation

PSzyszkaSpark
Copy link
Contributor

@squash-labs
Copy link

squash-labs bot commented Mar 2, 2020

Manage this branch in Squash

Test this branch here: https://spark-solutionssd-824-change-c-078lr.squash.io

@PSzyszkaSpark PSzyszkaSpark changed the title [WIP][SD-824] Corrects color presentation in admin panel [SD-824] Corrects color presentation in admin panel Mar 2, 2020
@@ -8,3 +8,10 @@ Handlebars.registerHelper('t', function (key) {
Handlebars.registerHelper('edit_product_url', function (productId) {
return Spree.routes.edit_product(productId)
})
Handlebars.registerHelper('name_or_presentation', function (optionTypePresentation, optionValue) {
if (optionTypePresentation === 'Color') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (optionTypePresentation === 'Color') {
if (optionTypePresentation === 'Color') {

let's compare name, not presentation if possible

@damianlegawiec damianlegawiec merged commit 6703a79 into spree:master Mar 11, 2020
damianlegawiec pushed a commit that referenced this pull request Mar 11, 2020
* Corrects color presentation in admin panel

* Corrects handlebar_extensions.js

* Corrects color display in variant form and removes upparcase in handlebar_extensions.js

* Changes checks from option type presentation to name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants