mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-10 05:53:05 +09:00
fix(ui): show a single empty state when no firewall is detected
This commit is contained in:
1 parent
63f2192076
commit
b9e3cdd959
1 file changed
+2
-1
@@ -447,7 +447,8 @@ const FirewallTab = () => {
|
||||
|
||||
return (
|
||||
<div className="firewall-tab">
|
||||
{partialError && <ErrorState compact error={partialError} onRetry={loadData} />}
|
||||
{/* No firewall: the empty state below already says so; the error would repeat it. */}
|
||||
{partialError && status?.any_installed && <ErrorState compact error={partialError} onRetry={loadData} />}
|
||||
{!status?.any_installed ? (
|
||||
<EmptyState
|
||||
icon={Shield}
|
||||
|
||||
Reference in new issue
Block a user