fix gh create button
This commit is contained in:
@@ -37,8 +37,9 @@ class Change extends Component
|
|||||||
|
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
if (is_cloud()) {
|
if (is_cloud() && !isDev()) {
|
||||||
$this->webhook_endpoint = config('app.url');
|
$this->webhook_endpoint = config('app.url');
|
||||||
|
ray($this->webhook_endpoint);
|
||||||
} else {
|
} else {
|
||||||
$this->webhook_endpoint = $this->ipv4;
|
$this->webhook_endpoint = $this->ipv4;
|
||||||
$this->is_system_wide = $this->github_app->is_system_wide;
|
$this->is_system_wide = $this->github_app->is_system_wide;
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
<p>This source will be deleted. It is not reversible. <br>Please think again.</p>
|
<p>This source will be deleted. It is not reversible. <br>Please think again.</p>
|
||||||
</x-slot:modalBody>
|
</x-slot:modalBody>
|
||||||
</x-modal>
|
</x-modal>
|
||||||
<form wire:submit.prevent='submit'>
|
<form wire:submit.prevent='submit' x-data>
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<h1>GitHub App</h1>
|
<h1>GitHub App</h1>
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2">
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="pt-1 pb-2 ">You need to register a GitHub App before using this source.</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">
|
<div class="pt-2 pb-10">
|
||||||
@if (!is_cloud())
|
@if (!is_cloud() || isDev())
|
||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.select wire:model='webhook_endpoint' label="Webhook Endpoint"
|
<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.">
|
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 />
|
<x-forms.input type="number" id="github_app.custom_port" label="Port" required />
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@if (!is_cloud())
|
@if (!is_cloud() || isDev())
|
||||||
<x-forms.checkbox
|
<x-forms.checkbox
|
||||||
helper="If checked, this GitHub App will be available for everyone in this Coolify instance."
|
helper="If checked, this GitHub App will be available for everyone in this Coolify instance."
|
||||||
label="System Wide?" disabled id="is_system_wide" />
|
label="System Wide?" disabled id="is_system_wide" />
|
||||||
|
Reference in New Issue
Block a user