Fixed currency missing on mobile registrar view

This commit is contained in:
Pinga 2025-03-13 18:35:53 +02:00
parent d62b15b4e7
commit edc2bdab04

View file

@ -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(); }},
]