Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Refactor input field for port number

Andras Bacsai1af7ffcdc46a
diff --git a/resources/views/livewire/project/new/github-private-repository-deploy-key.blade.php b/resources/views/livewire/project/new/github-private-repository-deploy-key.blade.php
index ed18da4849..19fcd134e7 100644
--- a/resources/views/livewire/project/new/github-private-repository-deploy-key.blade.php
+++ b/resources/views/livewire/project/new/github-private-repository-deploy-key.blade.php
@@ -54,8 +54,8 @@
<x-forms.input id="publish_directory" required label="Publish Directory" />
@endif
</div>
- <x-forms.input type="number" required id="port" label="Port" :readonly="$is_static || $build_pack === 'static'" />
@if ($show_is_static)
+ <x-forms.input type="number" required id="port" label="Port" :readonly="$is_static || $build_pack === 'static'" />
<div class="w-52">
<x-forms.checkbox instantSave id="is_static" label="Is it a static site?"
helper="If your application is a static site or the final build assets should be served as a static site, enable this." />
diff --git a/resources/views/livewire/project/new/github-private-repository.blade.php b/resources/views/livewire/project/new/github-private-repository.blade.php
index d20f24bc7f..a522e7b75b 100644
--- a/resources/views/livewire/project/new/github-private-repository.blade.php
+++ b/resources/views/livewire/project/new/github-private-repository.blade.php
@@ -97,9 +97,9 @@
helper="If there is a build process involved (like Svelte, React, Next, etc..), please specify the output directory for the build assets." />
@endif
</div>
- <x-forms.input type="number" id="port" label="Port" :readonly="$is_static || $build_pack === 'static'"
- helper="The port your application listens on." />
@if ($show_is_static)
+ <x-forms.input type="number" id="port" label="Port" :readonly="$is_static || $build_pack === 'static'"
+ helper="The port your application listens on." />
<div class="w-52">
<x-forms.checkbox instantSave id="is_static" label="Is it a static site?"
helper="If your application is a static site or the final build assets should be served as a static site, enable this." />
diff --git a/resources/views/livewire/project/new/public-git-repository.blade.php b/resources/views/livewire/project/new/public-git-repository.blade.php
index c01cbc9c96..6954432a1b 100644
--- a/resources/views/livewire/project/new/public-git-repository.blade.php
+++ b/resources/views/livewire/project/new/public-git-repository.blade.php
@@ -47,9 +47,9 @@
helper="If there is a build process involved (like Svelte, React, Next, etc..), please specify the output directory for the build assets." />
@endif
</div>
- <x-forms.input type="number" id="port" label="Port" :readonly="$is_static || $build_pack === 'static'"
- helper="The port your application listens on." />
@if ($show_is_static)
+ <x-forms.input type="number" id="port" label="Port" :readonly="$is_static || $build_pack === 'static'"
+ helper="The port your application listens on." />
<div class="w-52">
<x-forms.checkbox instantSave id="is_static" label="Is it a static site?"
helper="If your application is a static site or the final build assets should be served as a static site, enable this." />