From 9ef3c59fee0d5592c9857ca6f0520c70bf71b9d9 Mon Sep 17 00:00:00 2001
From: d7hernan <83631798+d7hernan@users.noreply.github.com>
Date: Sun, 20 Nov 2022 22:22:31 -0800
Subject: [PATCH] added restaurant, tag, and comments to reviewDetails
Co-authored-by: rheabhutada02
---
source/ReviewDetails.html | 7 ++++---
source/assets/scripts/ReviewDetails.js | 10 +++++-----
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/source/ReviewDetails.html b/source/ReviewDetails.html
index b8325c2..79a10f7 100644
--- a/source/ReviewDetails.html
+++ b/source/ReviewDetails.html
@@ -25,7 +25,7 @@
-
Cucumber Salad
+ default meal name
diff --git a/source/assets/scripts/ReviewDetails.js b/source/assets/scripts/ReviewDetails.js
index c0e5911..27f1950 100644
--- a/source/assets/scripts/ReviewDetails.js
+++ b/source/assets/scripts/ReviewDetails.js
@@ -29,18 +29,18 @@ function setupInfo(){
mealLabel.innerHTML = currReview["mealName"];
//restaurant name
- /*let restaurantLabel = document.getElementById("d-restaurant");
+ let restaurantLabel = document.getElementById("d-restaurant");
restaurantLabel.innerHTML = currReview["restaurant"];
-
+
//comments
let comments = document.getElementById("d-comments");
comments.innerText = currReview["comments"];
- */
+
//rating
let starsImg = document.getElementById("d-rating");
starsImg.setAttribute("src", "./assets/images/icons/"+currReview["rating"]+"-star.svg");
starsImg.setAttribute("alt", currReview["rating"] +" stars");
- /*
+
//tags
let tagContainer = document.getElementById("d-tags");
if(currReview["tags"]){
@@ -50,7 +50,7 @@ function setupInfo(){
newTag.innerHTML = currReview["tags"][i];
tagContainer.append(newTag);
}
- }*/
+ }
}
function setupDelete(){
The food was good
+default comment