Skip to content

Commit

Permalink
bugfix/MARP-969-Version-is-not-display-in-information-tab-when-initia…
Browse files Browse the repository at this point in the history
…te-details-page
  • Loading branch information
ntqdinh-axonivy authored Aug 23, 2024
1 parent 1ed484a commit 143799e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ describe('ProductDetailComponent', () => {
);
});

it('version should display in number', () => {
expect(component.selectedVersion).toEqual('10.0.0');
});

it('should get corresponding version from cookie', () => {
const targetVersion = '1.0';
const productId = 'Portal';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ export class ProductDetailComponent {
this.productDetailService.productNames.set(productDetail.names);
localStorage.removeItem(STORAGE_ITEM);
this.installationCount = productDetail.installationCount;
this.selectedVersion = this.productModuleContent().tag;
if (this.selectedVersion.startsWith('v')) {
this.selectedVersion = this.selectedVersion.substring(1);
}
});
this.productFeedbackService.initFeedbacks();
this.productStarRatingService.fetchData();
Expand Down

0 comments on commit 143799e

Please sign in to comment.