From 1a3c253cbdd1fe4552e1a86acaf047d6b8156669 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Wed, 24 Apr 2024 21:22:31 +0300 Subject: [PATCH] Update BackupType.php --- web/app/Filament/Enums/BackupType.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/web/app/Filament/Enums/BackupType.php b/web/app/Filament/Enums/BackupType.php index 8d5c41b..691a435 100644 --- a/web/app/Filament/Enums/BackupType.php +++ b/web/app/Filament/Enums/BackupType.php @@ -11,14 +11,12 @@ enum BackupType: string implements HasLabel, HasDescriptions, HasIcons case FULL_BACKUP = 'full'; case SYSTEM_BACKUP = 'system'; - case DATABASE_BACKUP = 'database'; case HOSTING_SUBSCRIPTION_BACKUP = 'hosting_subscription'; public function getLabel(): ?string { return match ($this) { self::FULL_BACKUP => 'Full Backup', - self::SYSTEM_BACKUP => 'System Backup', - self::DATABASE_BACKUP => 'Database Backup', + self::SYSTEM_BACKUP => 'System', self::HOSTING_SUBSCRIPTION_BACKUP => 'Hosting Subscription Backup', }; } @@ -26,10 +24,9 @@ enum BackupType: string implements HasLabel, HasDescriptions, HasIcons public function getDescriptions(): ?string { return match ($this) { - self::FULL_BACKUP => 'A full backup is a complete copy of your website files and database. It is the best way to protect your website data.', - self::SYSTEM_BACKUP => 'A system backup is a copy of your website files and system files. It is useful for restoring your website if there is a problem with the system files.', - self::DATABASE_BACKUP => 'A database backup is a copy of your website database. It is useful for restoring your website if there is a problem with the database.', - self::HOSTING_SUBSCRIPTION_BACKUP => 'A hosting subscription backup is a copy of your website files and database. It is useful for restoring your website if there is a problem with the hosting subscription.', + self::FULL_BACKUP => 'A full backup of the server. Includes phyre system full configuration and hosting subscriptions.', + self::SYSTEM_BACKUP => 'A backup of the phyre system full configuration', + self::HOSTING_SUBSCRIPTION_BACKUP => 'A backup of a hosting subscription', }; } @@ -38,7 +35,6 @@ enum BackupType: string implements HasLabel, HasDescriptions, HasIcons return match ($this) { self::FULL_BACKUP => 'heroicon-o-inbox-stack', self::SYSTEM_BACKUP => 'heroicon-o-cog', - self::DATABASE_BACKUP => 'phyre-mysql', self::HOSTING_SUBSCRIPTION_BACKUP => 'heroicon-o-server', }; }