diff --git a/ui/AdminsPage.tsx b/ui/AdminsPage.tsx
index aa98707..c9d39f5 100644
--- a/ui/AdminsPage.tsx
+++ b/ui/AdminsPage.tsx
@@ -48,14 +48,18 @@ export function AdminsPage(props: { sessionId: string | null }) {
{getAdmins.data?.length
? (
-
+
{getAdmins.data.map((admin) => (
))}
)
: getAdmins.data?.length === 0
- ? No admins
+ ? (
+ -
+
No admins.
+
+ )
: getAdmins.error
? Loading admins failed
: }
diff --git a/ui/QueuePage.tsx b/ui/QueuePage.tsx
index 3b11590..694724a 100644
--- a/ui/QueuePage.tsx
+++ b/ui/QueuePage.tsx
@@ -15,36 +15,43 @@ export function QueuePage() {
return (
- {getJobs.data?.map((job) => (
- -
-
- {job.place}.
-
- {getFlagEmoji(job.state.from.language_code)}
- {job.state.from.first_name} {job.state.from.last_name}
- {job.state.from.username
- ? (
-
- @{job.state.from.username}
-
- )
- : null}
-
- {job.state.progress != null &&
- }
-
-
- {job.state.workerInstanceKey}
-
-
- ))}
+ {getJobs.data && getJobs.data.length === 0
+ ? - Queue is empty.
+ : (
+ getJobs.data?.map((job) => (
+ -
+ {job.place}.
+ {getFlagEmoji(job.state.from.language_code)}
+ {job.state.from.first_name} {job.state.from.last_name}
+ {job.state.from.username
+ ? (
+
+ @{job.state.from.username}
+
+ )
+ : null}
+
+ {job.state.progress != null && (
+
+ )}
+
+
+ {job.state.workerInstanceKey}
+
+
+ ))
+ )}
);
}
diff --git a/ui/WorkersPage.tsx b/ui/WorkersPage.tsx
index 0310cfe..2428a37 100644
--- a/ui/WorkersPage.tsx
+++ b/ui/WorkersPage.tsx
@@ -31,14 +31,18 @@ export function WorkersPage(props: { sessionId: string | null }) {
<>
{getWorkers.data?.length
? (
-
+
{getWorkers.data?.map((worker) => (
))}
)
: getWorkers.data?.length === 0
- ? No workers
+ ? (
+ -
+
No workers.
+
+ )
: getWorkers.error
? Loading workers failed
: }