Edit Navbar Connection, Fix Tracker Grammar, Auto Redirect on Dispatch Main Page, Adjust Toast Position
This commit is contained in:
@@ -17,13 +17,17 @@ export const ConnectedDispatcher = () => {
|
||||
refetchInterval: 10000,
|
||||
});
|
||||
|
||||
const connections = (aircrafts?.length || 0) + (dispatcher?.length || 0);
|
||||
|
||||
return (
|
||||
<div className="absolute top-5 right-10 min-w-120 z-99999">
|
||||
<div className="collapse collapse-arrow bg-base-100 border-base-300 border">
|
||||
<input type="checkbox" />
|
||||
{/* <div className="collapse-title font-semibold">Kein Disponent Online</div> */}
|
||||
<div className="collapse-title font-semibold flex items-center justify-between">
|
||||
<span>{(aircrafts?.length || 0) + (dispatcher?.length || 0)} Verbundene Mitglieder</span>
|
||||
<span>
|
||||
{connections} {connections > 1 ? "Verbundene Mitglieder" : "Verbundenes Mitglied"}
|
||||
</span>
|
||||
<div className="gap-2 flex items-center">
|
||||
<div
|
||||
className={`badge badge-outline ${
|
||||
|
||||
Reference in New Issue
Block a user