MLE: Add loading logs text

This commit is contained in:
thororen1234 2026-07-19 19:01:19 -04:00
parent 6a3a7a5087
commit 71892c760d
No known key found for this signature in database

View file

@ -171,6 +171,10 @@ export function LogsModal({ modalProps, initalQuery }: Props) {
/>
)}
{pending && (
<LoadingLogs />
)}
{!pending && messages != null && (
<LogsContentMemo
visibleMessages={messages}
@ -286,6 +290,19 @@ function EmptyLogs({ hasQuery, reset: forceUpdate }: { hasQuery: boolean; reset:
</Flex>
</div>
);
}
function LoadingLogs() {
return (
<div className={cl("modal-empty-logs", "modal-content-inner")} style={{ textAlign: "center" }}>
<Flex flexDirection="column" style={{ position: "relative" }}>
<BaseText size="lg">
Loading Logs...
</BaseText>
</Flex>
</div>
);
}