mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
Refactor the GitHub source UI into dedicated General, Permissions & Events, and Resources Livewire pages/components with route-based navigation. Also keeps permission/event refetch and resource listing behavior intact while improving page organization and adds feature coverage for the new pages.
25 lines
654 B
PHP
25 lines
654 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Source\Github;
|
|
|
|
use App\Models\GithubApp;
|
|
use Livewire\Component;
|
|
|
|
class PermissionsEvents extends Component
|
|
{
|
|
public ?GithubApp $github_app = null;
|
|
|
|
public function mount(string $github_app_uuid): void
|
|
{
|
|
$this->github_app = GithubApp::ownedByCurrentTeam()->whereUuid($github_app_uuid)->firstOrFail();
|
|
|
|
if (! data_get($this->github_app, 'app_id')) {
|
|
$this->redirectRoute('source.github.show', ['github_app_uuid' => $this->github_app->uuid], navigate: true);
|
|
}
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.source.github.permissions-events');
|
|
}
|
|
}
|