Skip to content

Commit

Permalink
update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ntqdinh-axonivy committed Aug 15, 2024
1 parent 3b9b614 commit ab71007
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class ProductDetailComponent {
if (!targetVersion) {
return this.productService.getProductDetails(productId);
}
return this.productService.getProductDetailsWithVersion(
return this.productService.getBestMatchProductDetailsWithVersion(
productId,
targetVersion
);
Expand Down
9 changes: 9 additions & 0 deletions marketplace-ui/src/app/modules/product/product.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ export class ProductService {
);
}

getBestMatchProductDetailsWithVersion(
productId: string,
tag: string
): Observable<ProductDetail> {
return this.httpClient.get<ProductDetail>(
`api/product-details/${productId}/${tag}/bestmatch`
);
}

getProductDetails(productId: string): Observable<ProductDetail> {
return this.httpClient.get<ProductDetail>(
`api/product-details/${productId}`
Expand Down

0 comments on commit ab71007

Please sign in to comment.