mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-10 05:53:05 +09:00
fix(frontend): show a single empty state on the firewall tab
This commit is contained in:
1 parent
07e2c76b07
commit
e6b6b94d0d
1 file changed
+2
-1
@@ -447,7 +447,8 @@ const FirewallTab = () => {
|
||||
|
||||
return (
|
||||
<div className="firewall-tab">
|
||||
{partialError && <ErrorState compact error={partialError} onRetry={loadData} />}
|
||||
{/* With no firewall installed the rules/blocked reads fail as a side effect; the call to action below already says so. */}
|
||||
{partialError && status?.any_installed && <ErrorState compact error={partialError} onRetry={loadData} />}
|
||||
{!status?.any_installed ? (
|
||||
<EmptyState
|
||||
icon={Shield}
|
||||
|
||||
Reference in new issue
Block a user