This commit is contained in:
Andras Bacsai 2023-05-08 14:31:18 +02:00
parent d77d32853f
commit d3bf1137d7
2 changed files with 19 additions and 1 deletions

View File

@ -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;

View File

@ -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>