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

MARP-989: Empty product detail tabs not hidden #120

Merged

Conversation

vhhoang-axonivy
Copy link
Contributor

No description provided.

description: content.description !== null,
demo: content.demo !== null,
setup: content.setup !== null ,
description: !this.isPropertyNullOrAllEmpty(content.description),
Copy link
Contributor

Choose a reason for hiding this comment

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

The issue was not fixed in case of the language of description is empty String
image

image

Copy link
Contributor Author

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 {
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed as commented

…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
@github-actions github-actions bot added the enhancement New feature or request label Aug 30, 2024
…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
Copy link
Contributor

@tvtphuc-axonivy tvtphuc-axonivy left a comment

Choose a reason for hiding this comment

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

LGTM

@vhhoang-axonivy vhhoang-axonivy merged commit 99644e1 into develop Sep 11, 2024
6 checks passed
@vhhoang-axonivy vhhoang-axonivy deleted the feature/MARP-989-Empty-product-detail-tabs-not-hidden branch September 11, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants