coolify/app/Livewire/Dashboard.php
Andras Bacsai 890f076572 refactor(dashboard): replace project navigation method with direct link in UI
- Removed the navigateToProject method from the Livewire component.
- Updated the dashboard view to use anchor tags for project navigation, enhancing user experience and simplifying the code structure.
2025-09-30 15:13:14 +02:00

30 lines
623 B
PHP

<?php
namespace App\Livewire;
use App\Models\PrivateKey;
use App\Models\Project;
use App\Models\Server;
use Illuminate\Support\Collection;
use Livewire\Component;
class Dashboard extends Component
{
public $projects = [];
public Collection $servers;
public Collection $privateKeys;
public function mount()
{
$this->privateKeys = PrivateKey::ownedByCurrentTeam()->get();
$this->servers = Server::ownedByCurrentTeam()->get();
$this->projects = Project::ownedByCurrentTeam()->get();
}
public function render()
{
return view('livewire.dashboard');
}
}