Skip to content

Commit

Permalink
handle feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ntqdinh-axonivy committed Dec 18, 2024
1 parent 22717c6 commit 1b5e37a
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,23 +163,23 @@ export class ProductDetailComponent {
productFeedBack:
this.productFeedbackService.getInitFeedbacksObservable(),
rating: this.productStarRatingService.getRatingObservable(productId),
userFeedback: this.productFeedbackService.findProductFeedbackOfUser(),
params: this.route.queryParams
userFeedback: this.productFeedbackService.findProductFeedbackOfUser()
}).subscribe(res => {
this.handleProductDetail(res.productDetail);
this.productFeedbackService.handleFeedbackApiResponse(
res.productFeedBack
);
this.updateDropdownSelection();
this.checkMediaSize();
this.showPopup = res.params['showPopup'] === 'true';

if (this.showPopup && this.authService.getToken()) {
this.appModalService
.openAddFeedbackDialog()
.then(() => this.removeQueryParam())
.catch(() => this.removeQueryParam());
}
this.route.queryParams.subscribe(params => {
this.showPopup = params['showPopup'] === 'true';
if (this.showPopup && this.authService.getToken()) {
this.appModalService
.openAddFeedbackDialog()
.then(() => this.removeQueryParam())
.catch(() => this.removeQueryParam());
}
});
this.loadingService.hideLoading(LoadingComponentId.DETAIL_PAGE);
});
}
Expand Down

0 comments on commit 1b5e37a

Please sign in to comment.