-
Notifications
You must be signed in to change notification settings - Fork 7
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
product page component to menage brand name simple version #45
base: main
Are you sure you want to change the base?
product page component to menage brand name simple version #45
Conversation
…xtjs into AKB-64-product-page-component-to-menage-brand-name-simple-version
There was a problem hiding this comment.
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
components/product/ProductBrand.vue
Outdated
computed: { | ||
productBrandName(): string { | ||
const brand = this.product?.brand | ||
const brandName = brand?.brand.name || '' | ||
return brandName | ||
} | ||
} |
There was a problem hiding this comment.
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"> |
There was a problem hiding this comment.
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"
components/search/SearchProduct.vue
Outdated
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
AKB (Abitare Kids Brands ) is the key used in our jira