fix: show backup timezone on the UI

This commit is contained in:
Andras Bacsai
2025-01-03 20:39:27 +01:00
parent 4d18e3372d
commit c33132d8d9
3 changed files with 12 additions and 4 deletions

View File

@@ -40,6 +40,9 @@ class BackupEdit extends Component
#[Validate(['required', 'string'])]
public string $frequency = '';
#[Validate(['readonly', 'string'])]
public string $timezone = '';
#[Validate(['required', 'integer', 'min:1'])]
public int $numberOfBackupsLocally = 1;
@@ -80,6 +83,7 @@ class BackupEdit extends Component
} else {
$this->backupEnabled = $this->backup->enabled;
$this->frequency = $this->backup->frequency;
$this->timezone = data_get($this->backup->server(), 'settings.server_timezone', 'Instance timezone');
$this->numberOfBackupsLocally = $this->backup->number_of_backups_locally;
$this->saveS3 = $this->backup->save_s3;
$this->s3StorageId = $this->backup->s3_storage_id;