mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-03 09:33:25 +02:00
Fixed currency missing on mobile registrar view
This commit is contained in:
parent
d62b15b4e7
commit
edc2bdab04
1 changed files with 4 additions and 7 deletions
|
@ -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(); }},
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue