wip
This commit is contained in:
@@ -50,6 +50,10 @@ class Change extends Component
|
|||||||
}
|
}
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
|
$settings = InstanceSettings::first();
|
||||||
|
if ($settings->fqdn) {
|
||||||
|
$this->host = $settings->fqdn;
|
||||||
|
}
|
||||||
$this->parameters = getParameters();
|
$this->parameters = getParameters();
|
||||||
$this->github_app = GithubApp::where('uuid', $this->parameters['github_app_uuid'])->first();
|
$this->github_app = GithubApp::where('uuid', $this->parameters['github_app_uuid'])->first();
|
||||||
$this->is_system_wide = $this->github_app->is_system_wide;
|
$this->is_system_wide = $this->github_app->is_system_wide;
|
||||||
|
@@ -23,8 +23,22 @@
|
|||||||
@else
|
@else
|
||||||
<div class="py-2">
|
<div class="py-2">
|
||||||
<x-inputs.button type="submit">Save</x-inputs.button>
|
<x-inputs.button type="submit">Save</x-inputs.button>
|
||||||
<x-inputs.button wire:click.prevent='createGithubApp'>Create GitHub Application</x-inputs.button>
|
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</form>
|
</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>
|
</div>
|
||||||
|
Reference in New Issue
Block a user