An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(team): prevent danger zone source loading error (#11305)
Andras Bacsai8e73149a061e
diff --git a/resources/views/livewire/team/danger-zone.blade.php b/resources/views/livewire/team/danger-zone.blade.phpindex 84bf9fe5c4..ade512a6f4 100644--- a/resources/views/livewire/team/danger-zone.blade.php+++ b/resources/views/livewire/team/danger-zone.blade.php@@ -75,7 +75,7 @@'Projects' => currentTeam()->projects,'Servers' => currentTeam()->servers,'Private keys' => currentTeam()->privateKeys,- 'Sources' => currentTeam()->sources,+ 'Sources' => currentTeam()->sources(),] as $label => $resources)@if ($resources->isNotEmpty())<div class="rounded-lg border border-neutral-200 p-3 dark:border-white/[0.08]">diff --git a/tests/Feature/TeamSettingsNavigationTest.php b/tests/Feature/TeamSettingsNavigationTest.phpindex 2597edc1b7..d6b6f72cf2 100644--- a/tests/Feature/TeamSettingsNavigationTest.php+++ b/tests/Feature/TeamSettingsNavigationTest.php@@ -28,7 +28,9 @@ it('uses shared sidebar navigation for every team settings page', function () {expect(file_get_contents(resource_path('views/livewire/team/danger-zone.blade.php')))->toContain('Delete team')->toContain('status="Permanent"')- ->toContain('border-red-300');+ ->toContain('border-red-300')+ ->toContain("'Sources' => currentTeam()->sources()")+ ->not->toContain("'Sources' => currentTeam()->sources,");expect(file_get_contents(resource_path('views/livewire/switch-team.blade.php')))->toContain('New team')->toContain('team-switcher-create-expanded')