Add 'calculating rate' message

This commit is contained in:
Weves
2023-08-12 15:02:13 -07:00
committed by Chris Weaver
parent d5bb10b61f
commit 0381715fdd

View File

@@ -164,7 +164,7 @@ function Main() {
)?.toFixed(2); )?.toFixed(2);
statusDisplay = ( statusDisplay = (
<div className="text-gray-400"> <div className="text-gray-400">
In Progress...{" "} In Progress{" "}
{connectorIndexingStatus?.latest_index_attempt {connectorIndexingStatus?.latest_index_attempt
?.num_docs_indexed ? ( ?.num_docs_indexed ? (
<div className="text-xs mt-0.5"> <div className="text-xs mt-0.5">
@@ -176,12 +176,15 @@ function Main() {
}{" "} }{" "}
docs indexed docs indexed
</div> </div>
{docsPerMinute && (
<div> <div>
<i>Speed:</i> ~{docsPerMinute} docs / min <i>Speed:</i>{" "}
</div> {docsPerMinute ? (
<>~{docsPerMinute} docs / min</>
) : (
"calculating rate..."
)} )}
</div> </div>
</div>
) : null} ) : null}
</div> </div>
); );