Explorar o código

Fix one small bug in transaction details

Lee Morgan %!s(int64=6) %!d(string=hai) anos
pai
achega
9aba295b0f
Modificáronse 2 ficheiros con 3 adicións e 63 borrados
  1. 0 62
      views/dashboardPage/bundle.js
  2. 3 1
      views/dashboardPage/js/transactionDetails.js

A diferenza do arquivo foi suprimida porque é 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(){

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio