wip
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
@@ -67,6 +67,7 @@ class PublicGitRepository extends Component
|
||||
$this->port = 3000;
|
||||
$this->publish_directory = null;
|
||||
}
|
||||
$this->emit('saved', 'Application settings updated!');
|
||||
}
|
||||
|
||||
public function submit()
|
||||
|
@@ -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()
|
||||
{
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user