From d7cfb843511327bd2b33ecd88b6d142cdc8a3dc8 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 28 Aug 2023 21:15:30 +0200 Subject: [PATCH] fix gh create button --- app/Http/Livewire/Source/Github/Change.php | 3 ++- resources/views/livewire/source/github/change.blade.php | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Http/Livewire/Source/Github/Change.php b/app/Http/Livewire/Source/Github/Change.php index 859e94f79..f4ab49c1a 100644 --- a/app/Http/Livewire/Source/Github/Change.php +++ b/app/Http/Livewire/Source/Github/Change.php @@ -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; diff --git a/resources/views/livewire/source/github/change.blade.php b/resources/views/livewire/source/github/change.blade.php index 737bdac42..632791b9f 100644 --- a/resources/views/livewire/source/github/change.blade.php +++ b/resources/views/livewire/source/github/change.blade.php @@ -4,7 +4,7 @@

This source will be deleted. It is not reversible.
Please think again.

-
+

GitHub App

@@ -77,7 +77,7 @@
You need to register a GitHub App before using this source.
- @if (!is_cloud()) + @if (!is_cloud() || isDev())
@@ -120,7 +120,7 @@ @endif
- @if (!is_cloud()) + @if (!is_cloud() || isDev())