mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-20 02:17:09 +00:00
fix(team): prevent danger zone source loading error (#11305)
This commit is contained in:
1 parent
9c5020c93b
commit
8e73149a06
2 files changed
+4
-2
No files matched your search
@@ -75,7 +75,7 @@
|
|||||||
'Projects' => currentTeam()->projects,
|
'Projects' => currentTeam()->projects,
|
||||||
'Servers' => currentTeam()->servers,
|
'Servers' => currentTeam()->servers,
|
||||||
'Private keys' => currentTeam()->privateKeys,
|
'Private keys' => currentTeam()->privateKeys,
|
||||||
'Sources' => currentTeam()->sources,
|
'Sources' => currentTeam()->sources(),
|
||||||
] as $label => $resources)
|
] as $label => $resources)
|
||||||
@if ($resources->isNotEmpty())
|
@if ($resources->isNotEmpty())
|
||||||
<div class="rounded-lg border border-neutral-200 p-3 dark:border-white/[0.08]">
|
<div class="rounded-lg border border-neutral-200 p-3 dark:border-white/[0.08]">
|
||||||
|
|||||||
@@ -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')))
|
expect(file_get_contents(resource_path('views/livewire/team/danger-zone.blade.php')))
|
||||||
->toContain('Delete team')
|
->toContain('Delete team')
|
||||||
->toContain('status="Permanent"')
|
->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')))
|
expect(file_get_contents(resource_path('views/livewire/switch-team.blade.php')))
|
||||||
->toContain('New team')
|
->toContain('New team')
|
||||||
->toContain('team-switcher-create-expanded')
|
->toContain('team-switcher-create-expanded')
|
||||||
|
|||||||
Reference in new issue
Block a user