Skip to content

Commit

Permalink
Better loading indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Apr 2, 2024
1 parent a0a5ffd commit b9f12e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/web-demo/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function Home() {
}
}}
>
{!client ? "Connecting to instance..." : queryLoadingCounter > 0 ? "..." : "Run query"}
{!mock ? "Downloading Postgres image..." : !client ? "Connecting to instance..." : queryLoadingCounter > 0 ? "..." : "Run query"}
</button>
<pre style={{ maxHeight: 100, overflowY: "scroll", backgroundColor: "rgba(0.5, 0.5, 0.5, 0.05)" }}>
{queryResult}
Expand Down Expand Up @@ -147,7 +147,7 @@ export default function Home() {
</div>
</div>
) : (
<p>Downloading Postgres...</p>
<p>Downloading Postgres image...</p>
)}
</main>
);
Expand Down

0 comments on commit b9f12e2

Please sign in to comment.