This commit is contained in:
Andras Bacsai
2023-05-16 13:11:05 +02:00
parent dedcc80501
commit 9bbf25b9f4
10 changed files with 80 additions and 66 deletions

View File

@@ -61,7 +61,6 @@ class General extends Component
}
public function mount()
{
$this->application = Application::where('id', $this->applicationId)->with('destination', 'settings')->firstOrFail();
$this->is_static = $this->application->settings->is_static;
$this->is_git_submodules_allowed = $this->application->settings->is_git_submodules_allowed;
$this->is_git_lfs_allowed = $this->application->settings->is_git_lfs_allowed;

View File

@@ -0,0 +1,15 @@
<?php
namespace App\Http\Livewire\Project\Application;
use App\Models\Application;
use Livewire\Component;
class Previews extends Component
{
public Application $application;
public function render()
{
return view('livewire.project.application.previews');
}
}

View File

@@ -15,10 +15,7 @@ class Source extends Component
'application.git_branch' => 'required',
'application.git_commit_sha' => 'nullable',
];
public function mount()
{
$this->application = Application::where('id', $this->applicationId)->first();
}
public function submit()
{
$this->validate();