From edc2bdab0404abbe79d7ca7f8d971d47f85f7d99 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Thu, 13 Mar 2025 18:35:53 +0200 Subject: [PATCH] Fixed currency missing on mobile registrar view --- cp/resources/views/partials/js-registrars.twig | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cp/resources/views/partials/js-registrars.twig b/cp/resources/views/partials/js-registrars.twig index c409e1b..6fab337 100644 --- a/cp/resources/views/partials/js-registrars.twig +++ b/cp/resources/views/partials/js-registrars.twig @@ -95,13 +95,10 @@ {title:"{{ __('Name') }}", field:"name", width:180, resizable:false, headerSort:true, formatter: registrarLinkFormatter, responsive:0}, {title:"IANA ID", field:"iana_id", width:300, resizable:false, headerSort:true, responsive:2}, {title:"{{ __('Email') }}", field:"email", width:300, resizable:false, headerSort:true, responsive:2}, - {title:"{{ __('Balance') }}", field:"accountBalance", width:300, resizable:false, headerSort:true, responsive:2, formatter:"money", formatterParams:function(cell){ - return { - decimal: ".", - thousand: " ", - symbol: (cell.getRow().getData().currency || "$") + " ", // Ensures space after currency symbol - negativeSign: true - }; + {title:"{{ __('Balance') }}", field:"accountBalance", width:300, resizable:false, headerSort:true, responsive:2, formatter:function(cell){ + let data = cell.getRow().getData(); + let currency = data.currency || "$"; // Default to $ + return currency + " " + cell.getValue(); }}, {title: "{{ __('Actions') }}", formatter: actionsFormatter, responsive:0, headerSort: false, download:false, hozAlign: "center", cellClick:function(e, cell){ e.stopPropagation(); }}, ]