Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: make system-wide warning reactive in Create view

Andras Bacsai6746e44dba5c
diff --git a/resources/views/livewire/source/github/create.blade.php b/resources/views/livewire/source/github/create.blade.php
index 7681e0fd95..108c243e19 100644
--- a/resources/views/livewire/source/github/create.blade.php
+++ b/resources/views/livewire/source/github/create.blade.php
@@ -9,15 +9,17 @@
placeholder="If empty, your GitHub user will be used." id="organization" label="Organization (on GitHub)" />
</div>
@if (!isCloud())
- <div class="w-48">
- <x-forms.checkbox id="is_system_wide" label="System Wide"
- helper="If checked, this GitHub App will be available for everyone in this Coolify instance." />
+ <div x-data="{ showWarning: @entangle('is_system_wide') }">
+ <div class="w-48">
+ <x-forms.checkbox id="is_system_wide" label="System Wide"
+ helper="If checked, this GitHub App will be available for everyone in this Coolify instance." />
+ </div>
+ <div x-show="showWarning" x-transition style="display: none;">
+ <x-callout type="warning" title="Not Recommended">
+ System-wide GitHub Apps are shared across all teams on this Coolify instance. This means any team can use this GitHub App to deploy applications from your repositories. For better security and isolation, it's recommended to create team-specific GitHub Apps instead.
+ </x-callout>
+ </div>
</div>
- @if ($is_system_wide)
- <x-callout type="warning" title="Not Recommended">
- System-wide GitHub Apps are shared across all teams on this Coolify instance. This means any team can use this GitHub App to deploy applications from your repositories. For better security and isolation, it's recommended to create team-specific GitHub Apps instead.
- </x-callout>
- @endif
@endif
<div x-data="{
activeAccordion: '',