Parcourir la source

Fix one small bug in transaction details

Lee Morgan il y a 6 ans
Parent
commit
9aba295b0f
2 fichiers modifiés avec 3 ajouts et 63 suppressions
  1. 0 62
      views/dashboardPage/bundle.js
  2. 3 1
      views/dashboardPage/js/transactionDetails.js

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 62
views/dashboardPage/bundle.js


+ 3 - 1
views/dashboardPage/js/transactionDetails.js

@@ -35,7 +35,9 @@ let transactionDetails = {
         document.getElementById("totalRecipes").innerText = `${totalRecipes} recipes`;
         document.getElementById("totalPrice").innerText = `$${(totalPrice / 100).toFixed(2)}`;
 
-        document.getElementById("removeTransBtn").onclick = ()=>{this.remove()};
+        if(merchant.pos === "none"){
+            document.getElementById("removeTransBtn").onclick = ()=>{this.remove()};
+        }
     },
 
     remove: function(){

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff