update listing, handle fields with or without callbacks or callbacks only

This commit is contained in:
envoyr
2022-02-28 13:16:44 +01:00
parent 8ff6e71729
commit 8f6f85ea8e
25 changed files with 87 additions and 79 deletions

View File

@@ -36,12 +36,12 @@ return [
'size' => [
'label' => $lng['mysql']['size'],
'field' => 'size',
'format_callback' => [Text::class, 'size']
'callback' => [Text::class, 'size']
],
'dbserver' => [
'label' => $lng['mysql']['mysql_server'],
'field' => 'dbserver',
'format_callback' => [Mysql::class, 'dbserver'],
'callback' => [Mysql::class, 'dbserver'],
'visible' => $count_mysqlservers > 1
]
],