This commit is contained in:
Andras Bacsai
2023-05-09 09:54:43 +02:00
parent ec3fe284b6
commit bba8b25b48
14 changed files with 87 additions and 59 deletions

View File

@@ -57,6 +57,7 @@ class General extends Component
$this->application->settings->is_dual_cert = $this->is_dual_cert;
$this->application->settings->save();
$this->application->refresh();
$this->emit('saved', 'Application settings updated!');
}
public function mount()
{

View File

@@ -67,6 +67,7 @@ class PublicGitRepository extends Component
$this->port = 3000;
$this->publish_directory = null;
}
$this->emit('saved', 'Application settings updated!');
}
public function submit()

View File

@@ -33,6 +33,7 @@ class Form extends Component
$this->settings->is_registration_enabled = $this->is_registration_enabled;
$this->settings->is_https_forced = $this->is_https_forced;
$this->settings->save();
$this->emit('saved', 'Settings updated!');
}
public function submit()
{

View File

@@ -44,6 +44,7 @@ class Change extends Component
try {
$this->github_app->is_system_wide = $this->is_system_wide;
$this->github_app->save();
$this->emit('saved', 'GitHub settings updated!');
} catch (\Exception $e) {
return generalErrorHandlerLivewire($e, $this);
}

View File

@@ -22,6 +22,6 @@ class GithubApp extends BaseModel
}
static public function private()
{
return GithubApp::where('team_id', session('currentTeam')->id)->where('is_public', false)->whereNotNull('app_id')->whereNotNull('installation_id')->get();
return GithubApp::where('team_id', session('currentTeam')->id)->where('is_public', false)->get();
}
}