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

product page component to menage brand name simple version #45

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

sambakkids
Copy link
Collaborator

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

Copy link
Contributor

@thibaultrey thibaultrey left a 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

Comment on lines 21 to 27
computed: {
productBrandName(): string {
const brand = this.product?.brand
const brandName = brand?.brand.name || ''
return brandName
}
}
Copy link
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
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
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

Copy link
Contributor

@thibaultrey thibaultrey left a 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

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