diff --git a/panel/src/components/players/BansSection.tsx b/panel/src/components/players/BansSection.tsx index 97462f1..83b2954 100644 --- a/panel/src/components/players/BansSection.tsx +++ b/panel/src/components/players/BansSection.tsx @@ -4,6 +4,7 @@ import { Ban, Loader2, RotateCw, Undo2 } from "lucide-react"; import { Button } from "@/components/ui/button"; import { api, humanizeError } from "@/lib/api"; import { useAsync } from "@/lib/hooks"; +import { cn } from "@/lib/utils"; import { CollapsibleSection, FeedbackLine, @@ -180,7 +181,7 @@ export function BansSection({ name }: { name: string }) { )} - {loading ? ( + {loading && !data ? (
{t("log_connecting")}
@@ -192,7 +193,7 @@ export function BansSection({ name }: { name: string }) {

{t("access_ban_empty_hint")}

) : ( -
+
{showSearch && }
diff --git a/panel/src/components/players/WhitelistSection.tsx b/panel/src/components/players/WhitelistSection.tsx index d8e6459..7342e69 100644 --- a/panel/src/components/players/WhitelistSection.tsx +++ b/panel/src/components/players/WhitelistSection.tsx @@ -4,6 +4,7 @@ import { ListChecks, Loader2, Plus, RotateCw, X } from "lucide-react"; import { Button } from "@/components/ui/button"; import { api, humanizeError } from "@/lib/api"; import { useAsync } from "@/lib/hooks"; +import { cn } from "@/lib/utils"; import { CollapsibleSection, FeedbackLine, @@ -131,7 +132,7 @@ export function WhitelistSection({ name, defaultOpen = false }: { name: string; {invalid &&

{t("access_player_invalid")}

}
- {loading ? ( + {loading && !data ? (
{t("log_connecting")}
@@ -145,7 +146,7 @@ export function WhitelistSection({ name, defaultOpen = false }: { name: string;

) : ( -
+
{showSearch && }