From 6ebfa541def1841cf8b4b7f30e3e4dec3fa1c05e Mon Sep 17 00:00:00 2001
From: Pinga <121483313+getpinga@users.noreply.github.com>
Date: Tue, 5 Mar 2024 12:36:22 +0200
Subject: [PATCH] Additional transfers logic fix
---
cp/resources/views/partials/js-transfers.twig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cp/resources/views/partials/js-transfers.twig b/cp/resources/views/partials/js-transfers.twig
index f5ae1f0..c161643 100644
--- a/cp/resources/views/partials/js-transfers.twig
+++ b/cp/resources/views/partials/js-transfers.twig
@@ -20,14 +20,14 @@
var hasPendingStatus = rowData.trstatus && rowData.trstatus.includes('pending');
const tableResponsive = document.querySelector('.table-responsive');
const clidValue = atob(tableResponsive.dataset.ref);
-
+
if (hasPendingStatus && clidValue == '0') {
actionButtons += ` `;
actionButtons += ` `;
actionButtons += ``;
- } else if (clidValue == rowData.reid) {
+ } else if (hasPendingStatus && clidValue == rowData.reid) {
actionButtons += ` `;
- } else if (clidValue == rowData.acid) {
+ } else if (hasPendingStatus && clidValue == rowData.acid) {
actionButtons += ` `;
actionButtons += ``;
} else {