mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 06:24:44 +02:00

* Better readability * Force refresh the server instance * Use kebab case for these * Fix phpstan * Retry a little longer * Updates * Add pint * Don’t need this * Pint fix
22 lines
665 B
PHP
22 lines
665 B
PHP
@php
|
|
$shouldShow = false;
|
|
|
|
try {
|
|
$server->validateCurrentState();
|
|
} catch (\App\Exceptions\Http\Server\ServerStateConflictException $exception) {
|
|
$shouldShow = true;
|
|
$message = $exception->getMessage();
|
|
}
|
|
@endphp
|
|
|
|
<div id="server-conflict-banner">
|
|
@if ($shouldShow)
|
|
<div class="mt-2 p-2 rounded-lg text-white" style="background-color: #D97706;">
|
|
<div class="flex items-center">
|
|
<x-filament::icon icon="tabler-alert-triangle" class="h-6 w-6 mr-2 text-gray-500 dark:text-gray-400 text-white" />
|
|
<p>{!! $message !!}</p>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
</div>
|