fix: if app settings is not saved to db

This commit is contained in:
Andras Bacsai 2023-10-01 17:39:57 +02:00
parent aefdc76805
commit 5c45908087

View File

@ -104,6 +104,7 @@ class General extends Component
} }
public function mount() public function mount()
{ {
if (data_get($this->application,'settings')) {
$this->is_static = $this->application->settings->is_static; $this->is_static = $this->application->settings->is_static;
$this->is_git_submodules_enabled = $this->application->settings->is_git_submodules_enabled; $this->is_git_submodules_enabled = $this->application->settings->is_git_submodules_enabled;
$this->is_git_lfs_enabled = $this->application->settings->is_git_lfs_enabled; $this->is_git_lfs_enabled = $this->application->settings->is_git_lfs_enabled;
@ -112,6 +113,7 @@ class General extends Component
$this->is_auto_deploy_enabled = $this->application->settings->is_auto_deploy_enabled; $this->is_auto_deploy_enabled = $this->application->settings->is_auto_deploy_enabled;
$this->is_force_https_enabled = $this->application->settings->is_force_https_enabled; $this->is_force_https_enabled = $this->application->settings->is_force_https_enabled;
} }
}
public function submit() public function submit()
{ {