diff --git a/app/Http/Livewire/Project/Application/General.php b/app/Http/Livewire/Project/Application/General.php index a0236e3bc..0b551e55f 100644 --- a/app/Http/Livewire/Project/Application/General.php +++ b/app/Http/Livewire/Project/Application/General.php @@ -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; diff --git a/app/Http/Livewire/Project/Application/Previews.php b/app/Http/Livewire/Project/Application/Previews.php new file mode 100644 index 000000000..5e732b19e --- /dev/null +++ b/app/Http/Livewire/Project/Application/Previews.php @@ -0,0 +1,15 @@ + 'required', 'application.git_commit_sha' => 'nullable', ]; - public function mount() - { - $this->application = Application::where('id', $this->applicationId)->first(); - } + public function submit() { $this->validate(); diff --git a/resources/css/app.css b/resources/css/app.css index 34b619def..b293b3ac6 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -37,13 +37,13 @@ button { @apply bg-neutral-700 text-white; } h1 { - @apply text-3xl font-bold py-4; + @apply text-3xl font-bold pb-4; } h2 { - @apply text-xl font-bold py-4; + @apply text-xl font-bold pb-4; } h3 { - @apply text-lg font-bold py-4; + @apply text-lg font-bold pb-4; } .box { @apply flex items-center justify-center text-sm rounded cursor-pointer h-14 bg-coolgray-200 hover:bg-coollabs-100 p-2; diff --git a/resources/views/livewire/project/application/destination.blade.php b/resources/views/livewire/project/application/destination.blade.php index feabe4862..bfdbddb35 100644 --- a/resources/views/livewire/project/application/destination.blade.php +++ b/resources/views/livewire/project/application/destination.blade.php @@ -1,4 +1,5 @@
Server Name: {{ data_get($destination, 'server.name') }}
@if (data_get($destination, 'server.description'))Description: {{ data_get($destination, 'server.description') }}
diff --git a/resources/views/livewire/project/application/general.blade.php b/resources/views/livewire/project/application/general.blade.php index e76e899f8..55c065d75 100644 --- a/resources/views/livewire/project/application/general.blade.php +++ b/resources/views/livewire/project/application/general.blade.php @@ -1,43 +1,36 @@