mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-18 18:15:18 +00:00
fix(ui): standardize permission denial callouts
This commit is contained in:
1 parent
5973bb4d4f
commit
8a2373e49f
9 files changed
+98
-26
No files matched your search
@@ -71,6 +71,11 @@
|
||||
</x-callout>
|
||||
@endif
|
||||
@if (!$isCloudflareTunnelsEnabled && $server->isFunctional())
|
||||
@cannot('update', $server)
|
||||
<x-callout type="danger" title="Insufficient Permissions" class="mb-4">
|
||||
You don't have permission to configure Cloudflare Tunnel for this server.
|
||||
</x-callout>
|
||||
@endcannot
|
||||
<div class="flex flex-col pb-2">
|
||||
<h3>Automated </h3>
|
||||
<a href="https://coolify.io/docs/knowledge-base/cloudflare/tunnels/server-ssh" target="_blank"
|
||||
@@ -91,10 +96,6 @@
|
||||
helper="The SSH domain you configured in Cloudflare. Make sure there is no protocol like http(s):// so you provide a FQDN not a URL. <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/cloudflare/tunnels/server-ssh' target='_blank'>Documentation</a>" />
|
||||
<x-forms.button type="submit" isHighlighted>Continue</x-forms.button>
|
||||
</form>
|
||||
@else
|
||||
<x-callout type="warning" title="Permission Required" class="mb-4">
|
||||
You don't have permission to configure Cloudflare Tunnel for this server.
|
||||
</x-callout>
|
||||
@endcan
|
||||
</div>
|
||||
@script
|
||||
@@ -121,10 +122,6 @@
|
||||
]" confirmationText="I manually configured Cloudflare Tunnel"
|
||||
confirmationLabel="Please type the confirmation text to confirm that you manually configured Cloudflare Tunnel."
|
||||
shortConfirmationLabel="Confirmation text" />
|
||||
@else
|
||||
<x-callout type="warning" title="Permission Required" class="mb-4">
|
||||
You don't have permission to configure Cloudflare Tunnel for this server.
|
||||
</x-callout>
|
||||
@endcan
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
</x-forms.button> --}}
|
||||
</div>
|
||||
@else
|
||||
<x-callout type="warning" title="Permission Required" class="mb-4">
|
||||
<x-callout type="danger" title="Insufficient Permissions" class="mb-4">
|
||||
You don't have permission to configure proxy settings for this server.
|
||||
</x-callout>
|
||||
@endcan
|
||||
|
||||
Reference in new issue
Block a user