save things

This commit is contained in:
Andras Bacsai
2023-05-08 13:36:49 +02:00
parent dfecf2cc60
commit d77d32853f
22 changed files with 240 additions and 18 deletions

View File

@@ -23,7 +23,7 @@ class Deploy extends Component
public function mount()
{
$this->parameters = saveParameters();
$this->parameters = getParameters();
$this->application = Application::where('id', $this->applicationId)->first();
$this->destination = $this->application->destination->getMorphClass()::where('id', $this->application->destination->id)->first();
}

View File

@@ -23,7 +23,7 @@ class Add extends Component
];
public function mount()
{
$this->parameters = saveParameters();
$this->parameters = getParameters();
}
public function submit()
{

View File

@@ -20,7 +20,7 @@ class Show extends Component
];
public function mount()
{
$this->parameters = saveParameters();
$this->parameters = getParameters();
}
public function submit()
{

View File

@@ -23,7 +23,7 @@ class Add extends Component
];
public function mount()
{
$this->parameters = saveParameters();
$this->parameters = getParameters();
}
public function submit()
{

View File

@@ -130,12 +130,12 @@ class GithubPrivateRepository extends Component
'environment_name' => $environment->name
]);
} catch (\Exception $e) {
$this->emit('error', $e->getMessage());
return generalErrorHandlerLivewire($e, $this);
}
}
public function mount()
{
$this->parameters = saveParameters();
$this->parameters = getParameters();
$this->repositories = $this->branches = $this->servers = $this->destinations = collect();
$this->github_apps = GithubApp::private();
}

View File

@@ -42,7 +42,7 @@ class PublicGitRepository extends Component
$this->public_repository_url = 'https://github.com/coollabsio/coolify-examples/tree/nodejs-fastify';
$this->port = 3000;
}
$this->parameters = saveParameters();
$this->parameters = getParameters();
$this->servers = session('currentTeam')->load(['servers'])->servers;
}
public function chooseServer($server)