fix(webhooks): hide manual Git webhook form for non-Git resources (#12218)

This commit is contained in:
Andras Bacsai
2026-10-19 21:12:45 +02:00
committed by GitHub
parent b4c3101b29
commit 36f36daec9
@@ -48,7 +48,7 @@
<x-forms.copy-input label="Deploy webhook URL" :text="$deploywebhook ?? ''" />
</x-application.settings-section>
@if ($githubManualWebhook && $gitlabManualWebhook)
@if ($resource->git_based() && $githubManualWebhook && $gitlabManualWebhook)
<form wire:submit.prevent="submit" class="application-settings-form flex flex-col">
<x-unsaved-bar action="submit"
dirty="Object.entries($wire.savedSecrets).some(([property, saved]) => ($wire[property] ?? '') !== (saved ?? ''))" />