integrate backup/access_backup fields into Customers

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-06-07 20:57:58 +02:00
parent a9c613e71c
commit 6f5e49de79
8 changed files with 205 additions and 16 deletions

View File

@@ -23,6 +23,7 @@
* @license https://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Backup;
use Froxlor\UI\Callbacks\Customer;
use Froxlor\UI\Callbacks\Impersonate;
use Froxlor\UI\Callbacks\ProgressBar;
@@ -149,6 +150,20 @@ return [
'class' => 'text-center',
'callback' => [Text::class, 'boolean'],
],
'c.backup' => [
'label' => lng('backup.backup_storage.title'),
'field' => 'backup',
'class' => 'text-center',
'callback' => [Backup::class, 'backupStorageLink'],
'visible' => (bool)Settings::Get('backup.enabled'),
],
'c.access_backup' => [
'label' => lng('backup.access_backup'),
'field' => 'access_backup',
'class' => 'text-center',
'callback' => [Text::class, 'boolean'],
'visible' => (bool)Settings::Get('backup.enabled'),
],
],
'visible_columns' => Listing::getVisibleColumnsForListing('customer_list', [
'c.name',