소스 검색

Fix one small bug in transaction details

Lee Morgan 6 년 전
부모
커밋
9aba295b0f
2개의 변경된 파일3개의 추가작업 그리고 63개의 파일을 삭제
  1. 0 62
      views/dashboardPage/bundle.js
  2. 3 1
      views/dashboardPage/js/transactionDetails.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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(){

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.