wip
This commit is contained in:
parent
d77d32853f
commit
d3bf1137d7
@ -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;
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user