Skip to content
Snippets Groups Projects
Commit 354b7fec authored by Seb Barnard's avatar Seb Barnard :speech_balloon:
Browse files

Added functionality to view shop buttons on index page

parent 243f1693
Branches
No related tags found
4 merge requests!56tags will be saved to userFavTags table (needs user ID of current logged in user),!50Merging for latest changes,!46Develop,!44Branch update
......@@ -23,4 +23,8 @@ function favouriteBusiness(e,shopId){
xhttp.send(params);
}
function redirect(shopId){
location.href = "businessDetails?shopId="+shopId;
}
\ No newline at end of file
......@@ -27,7 +27,7 @@
<p th:text="${reward_amount}"></p>
</div>
<div class="level-right">
<button class="button is-rounded gradient">
<button class="button is-rounded gradient" th:onclick="'redirect('+ ${shopId} + ')'">
View Shop
<span class="icon is-small is-left ml-1">
<i class="fas fa-arrow-right"></i>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment