improve application view

This commit is contained in:
Andras Bacsai
2024-12-16 14:11:45 +01:00
parent 62574941df
commit e76817d401
6 changed files with 110 additions and 114 deletions

View File

@@ -8,14 +8,21 @@ use Livewire\Component;
class Configuration extends Component
{
public $currentRoute;
public Application $application;
public $project;
public $environment;
public $servers;
protected $listeners = ['buildPackUpdated' => '$refresh'];
public function mount()
{
$this->currentRoute = request()->route()->getName();
$project = currentTeam()
->projects()
->select('id', 'uuid', 'team_id')
@@ -30,6 +37,8 @@ class Configuration extends Component
->where('uuid', request()->route('application_uuid'))
->firstOrFail();
$this->project = $project;
$this->environment = $environment;
$this->application = $application;
if ($application->destination && $application->destination->server) {
$mainServer = $application->destination->server;