Skip to content

product page component to menage brand name simple version - #45

Open
sambakkids wants to merge 5 commits into
mainfrom
AKB-64-product-page-component-to-menage-brand-name-simple-version
Open

product page component to menage brand name simple version#45
sambakkids wants to merge 5 commits into
mainfrom
AKB-64-product-page-component-to-menage-brand-name-simple-version

Conversation

@sambakkids

Copy link
Copy Markdown
Collaborator

AKB (Abitare Kids Brands ) is the key used in our jira

@thibaultrey thibaultrey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some changes are required on you productBrand component

Comment thread components/product/ProductBrand.vue Outdated
Comment on lines +21 to +27
computed: {
productBrandName(): string {
const brand = this.product?.brand
const brandName = brand?.brand.name || ''
return brandName
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the computed function is not necessary here because it just return the brand name your can directly add this to your template
{{product?.brand?.name || ''}}

@@ -0,0 +1,38 @@
<template>
<div class="product-brand">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you can add v-if condition like that
v-if="product?.brand?.name"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this file changes are not related to your PR topic

@thibaultrey thibaultrey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some files changes are not necessary in this PR

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.

2 participants