Skip to content

Commit

Permalink
Add VendorReview
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofPajak committed Nov 2, 2021
1 parent 937aa27 commit 2aeed3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Web/Grand.Web/Controllers/CatalogController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,10 @@ public virtual async Task<IActionResult> VendorReviews(string vendorId)
if (!vendorReview.IsApproved)
model.AddVendorReview.Result = _translationService.GetResource("VendorReviews.SeeAfterApproving");
else
{
model.AddVendorReview.Result = _translationService.GetResource("VendorReviews.SuccessfullyAdded");

model.VendorReviewOverview = PrepareVendorReviewOverviewModel(vendor);
}
return View(model);
}
model = await _mediator.Send(new GetVendorReviews() { Vendor = vendor });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public VendorReviewsModel()

public IList<VendorReviewModel> Items { get; set; }
public AddVendorReviewModel AddVendorReview { get; set; }
public VendorReviewOverviewModel VendorReviewOverview { get; set; }
}

public partial class VendorReviewModel : BaseEntityModel
Expand Down

0 comments on commit 2aeed3f

Please sign in to comment.