-
Notifications
You must be signed in to change notification settings - Fork 2
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
MARP-989: Empty product detail tabs not hidden #120
MARP-989: Empty product detail tabs not hidden #120
Conversation
description: content.description !== null, | ||
demo: content.demo !== null, | ||
setup: content.setup !== null , | ||
description: !this.isPropertyNullOrAllEmpty(content.description), |
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.
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.
Fixed as commented
private isPropertyNullOrAllEmpty(property: DisplayValue | null) { | ||
if (property === null) { | ||
return true; | ||
} else { |
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.
please remove line 182 and 185.
The else here is redundant. if property === null . you already return true
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.
Fixed as commented
marketplace-ui/src/app/modules/product/product-detail/product-detail.component.ts
Outdated
Show resolved
Hide resolved
…s-not-hidden # Conflicts: # marketplace-ui/src/app/modules/product/product-detail/product-detail.component.spec.ts # marketplace-ui/src/app/modules/product/product-detail/product-detail.component.ts
marketplace-ui/src/app/modules/product/product-detail/product-detail.component.html
Outdated
Show resolved
Hide resolved
marketplace-ui/src/app/modules/product/product-detail/product-detail.component.spec.ts
Outdated
Show resolved
Hide resolved
…s-not-hidden # Conflicts: # marketplace-ui/src/app/modules/product/product-detail/product-detail.component.spec.ts # marketplace-ui/src/app/modules/product/product-detail/product-detail.component.ts
-Refined display product module content logic (for null, undefined content based on Languge) -Refactor html of each content tab (using @for)
…s-not-hidden # Conflicts: # marketplace-ui/src/app/modules/product/product-detail/product-detail.component.html
-Refined how tabs are displayed on PC and mobile. -Add productId to ProductModuleContent interface in corresponding to Backend.
…s-not-hidden # Conflicts: # marketplace-ui/src/app/modules/product/product-detail/product-detail.component.spec.ts
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.
LGTM
No description provided.