coolify/app/Livewire/Source/Github/Resources.php
Andras Bacsai c7879da390 feat(github): split GitHub app source page into tabbed views
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.
2026-03-03 22:45:19 +01:00

25 lines
637 B
PHP

<?php
namespace App\Livewire\Source\Github;
use App\Models\GithubApp;
use Livewire\Component;
class Resources 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.resources');
}
}