Explorar el Código

Fix one small bug in transaction details

Lee Morgan hace 6 años
padre
commit
9aba295b0f
Se han modificado 2 ficheros con 3 adiciones y 63 borrados
  1. 0 62
      views/dashboardPage/bundle.js
  2. 3 1
      views/dashboardPage/js/transactionDetails.js

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 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(){

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio