Skip to content

Commit 5e47936

Browse files
feature: (WIP) with loading component
1 parent a3413e5 commit 5e47936

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/web/src/views/workspace/components/WorkspaceInstruction/WorkspaceCreateDialog.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import {
88
Button,
99
InputLabel,
1010
Alert,
11+
Typography,
12+
CircularProgress,
1113
} from "@mui/material";
1214
import React, { useState, useEffect, useCallback } from "react";
1315
import SwaggerItemSelector from "../../common/SwaggerItemSelector";
@@ -257,10 +259,27 @@ const WorkspaceCreateDialog: React.FC<WorkspaceCreateDialogProps> = ({ openDialo
257259
</Alert>
258260
)}
259261
{/* @TODO: revisit msg and component */}
260-
{modulesLoader.loading && (
262+
{/* {modulesLoader.loading && (
261263
<Alert variant="outlined" severity="info">
262264
{modulesLoader.loadingMessage}
263265
</Alert>
266+
)} */}
267+
{modulesLoader.loading && (
268+
<Box
269+
sx={{
270+
p: 1.5,
271+
mb: 2,
272+
backgroundColor: "lightblue",
273+
color: "text.primary",
274+
borderRadius: 2,
275+
display: "flex",
276+
alignItems: "center",
277+
gap: 2,
278+
}}
279+
>
280+
<CircularProgress size={20} color="primary" />
281+
<Typography variant="body2">{modulesLoader.loadingMessage}</Typography>
282+
</Box>
264283
)}
265284
<InputLabel shrink> API Specs</InputLabel>
266285
<Box

0 commit comments

Comments
 (0)