diff --git a/README.md b/README.md index 74a1eed..ff05bc0 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Filament Spatie Laravel Backup -[![PHP Version Require](http://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/require/php)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup) +[![PHP Version Require](https://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/require/php)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup) Build Status -[![Latest Stable Version](http://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/v)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup) -[![Total Downloads](http://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/downloads)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup) -[![License](http://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/license)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup) +[![Latest Stable Version](https://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/v)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup) +[![Total Downloads](https://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/downloads)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup) +[![License](https://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/license)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup) This package provides a Filament page that you can create backup of your application. You'll find installation instructions and full documentation on [spatie/laravel-backup](https://spatie.be/docs/laravel-backup/v7/introduction). diff --git a/resources/lang/it/backup.php b/resources/lang/it/backup.php new file mode 100644 index 0000000..3753da3 --- /dev/null +++ b/resources/lang/it/backup.php @@ -0,0 +1,70 @@ + [ + 'backup_destination_list' => [ + 'table' => [ + 'actions' => [ + 'download' => 'Download', + 'delete' => 'Cancella', + ], + + 'fields' => [ + 'path' => 'Percorso', + 'disk' => 'Disco', + 'date' => 'Data', + 'size' => 'Dimensione', + ], + + 'filters' => [ + 'disk' => 'Disco', + ], + ], + ], + + 'backup_destination_status_list' => [ + 'table' => [ + 'fields' => [ + 'name' => 'Nome', + 'disk' => 'Disco', + 'healthy' => 'Salute', + 'amount' => 'Quantità', + 'newest' => 'Più recente', + 'used_storage' => 'Storage Utilizzato', + ], + ], + ], + ], + + 'pages' => [ + 'backups' => [ + 'actions' => [ + 'create_backup' => 'Crea Backup', + ], + + 'heading' => 'Backup', + + 'messages' => [ + 'backup_success' => 'Creazione di un nuovo backup in background.', + 'backup_delete_success' => 'Eliminazione di questo backup in background.', + ], + + 'modal' => [ + 'buttons' => [ + 'only_db' => 'Solo DB', + 'only_files' => 'Solo File', + 'db_and_files' => 'DB & File', + ], + + 'label' => "Scegli un'opzione", + ], + + 'navigation' => [ + 'group' => 'Impostazioni', + 'label' => 'Backup', + ], + ], + ], + +]; diff --git a/src/Components/BackupDestinationListRecords.php b/src/Components/BackupDestinationListRecords.php index a4a4c58..4ec5afb 100644 --- a/src/Components/BackupDestinationListRecords.php +++ b/src/Components/BackupDestinationListRecords.php @@ -77,6 +77,8 @@ public function table(Table $table): Table ->icon('heroicon-o-trash') ->visible(auth()->user()->can('delete-backup')) ->requiresConfirmation() + ->color('danger') + ->modalIcon('heroicon-o-trash') ->action(function (BackupDestination $record) { SpatieBackupDestination::create($record->disk, config('backup.backup.name')) ->backups()