fix gh create button

This commit is contained in:
Andras Bacsai 2023-08-28 21:15:30 +02:00
parent d28cf0b76d
commit d7cfb84351
2 changed files with 5 additions and 4 deletions

View File

@ -37,8 +37,9 @@ class Change extends Component
public function mount()
{
if (is_cloud()) {
if (is_cloud() && !isDev()) {
$this->webhook_endpoint = config('app.url');
ray($this->webhook_endpoint);
} else {
$this->webhook_endpoint = $this->ipv4;
$this->is_system_wide = $this->github_app->is_system_wide;

View File

@ -4,7 +4,7 @@
<p>This source will be deleted. It is not reversible. <br>Please think again.</p>
</x-slot:modalBody>
</x-modal>
<form wire:submit.prevent='submit'>
<form wire:submit.prevent='submit' x-data>
<div class="flex items-center gap-2">
<h1>GitHub App</h1>
<div class="flex gap-2">
@ -77,7 +77,7 @@
</div>
<div class="pt-1 pb-2 ">You need to register a GitHub App before using this source.</div>
<div class="pt-2 pb-10">
@if (!is_cloud())
@if (!is_cloud() || isDev())
<div class="flex items-end gap-2">
<x-forms.select wire:model='webhook_endpoint' label="Webhook Endpoint"
helper="All Git webhooks will be sent to this endpoint. <br><br>If you would like to use domain instead of IP address, set your Coolify instance's FQDN in the Settings menu.">
@ -120,7 +120,7 @@
<x-forms.input type="number" id="github_app.custom_port" label="Port" required />
@endif
</div>
@if (!is_cloud())
@if (!is_cloud() || isDev())
<x-forms.checkbox
helper="If checked, this GitHub App will be available for everyone in this Coolify instance."
label="System Wide?" disabled id="is_system_wide" />