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.

wip

Andras Bacsaid3bf1137d788
diff --git a/app/Http/Livewire/Source/Github/Change.php b/app/Http/Livewire/Source/Github/Change.php
index 33b0585c28..7cf1ed5382 100644
--- a/app/Http/Livewire/Source/Github/Change.php
+++ b/app/Http/Livewire/Source/Github/Change.php
@@ -50,6 +50,10 @@ class Change extends Component
}
public function mount()
{
+ $settings = InstanceSettings::first();
+ if ($settings->fqdn) {
+ $this->host = $settings->fqdn;
+ }
$this->parameters = getParameters();
$this->github_app = GithubApp::where('uuid', $this->parameters['github_app_uuid'])->first();
$this->is_system_wide = $this->github_app->is_system_wide;
diff --git a/resources/views/livewire/source/github/change.blade.php b/resources/views/livewire/source/github/change.blade.php
index 8ef701c36b..2d50714fe8 100644
--- a/resources/views/livewire/source/github/change.blade.php
+++ b/resources/views/livewire/source/github/change.blade.php
@@ -23,8 +23,22 @@
@else
<div class="py-2">
<x-inputs.button type="submit">Save</x-inputs.button>
- <x-inputs.button wire:click.prevent='createGithubApp'>Create GitHub Application</x-inputs.button>
+
</div>
@endif
</form>
+ <form x-data="ContactForm()" @submit.prevent="submitForm">
+ <x-inputs.input id="host" noLabel />
+ <button type="submit">Create GitHub Application</button>
+ </form>
+ <script>
+ function ContactForm() {
+ return {
+ host: "",
+ submitForm() {
+ console.log(JSON.stringify(this.host));
+ },
+ };
+ }
+ </script>
</div>