Merge pull request #219 from getmaxun/run-recorder-ui
feat: enhance output preview load
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Box, Button, Stack, Typography } from "@mui/material";
|
import { Box, Button, Stack, Typography, CircularProgress } from "@mui/material";
|
||||||
import { PlayCircle } from "@mui/icons-material";
|
import { PlayCircle } from "@mui/icons-material";
|
||||||
import React, { useCallback, useEffect, useState } from "react";
|
import React, { useCallback, useEffect, useState } from "react";
|
||||||
import { interpretCurrentRecording, stopCurrentInterpretation } from "../../api/recording";
|
import { interpretCurrentRecording, stopCurrentInterpretation } from "../../api/recording";
|
||||||
@@ -139,7 +139,9 @@ export const InterpretationButtons = ({ enableStepping }: InterpretationButtonsP
|
|||||||
disabled={info.running}
|
disabled={info.running}
|
||||||
sx={{ display: 'grid' }}
|
sx={{ display: 'grid' }}
|
||||||
>
|
>
|
||||||
{info.running ? 'Extracting data...please wait' : 'Get Preview of Output Data'}
|
{info.running ? <Box sx={{ display: 'flex', alignItems: 'center' }}>
|
||||||
|
<CircularProgress size={22} color="inherit" sx={{ marginRight: '10px' }} /> Extracting data...please wait for 10secs to 1min
|
||||||
|
</Box> : 'Get Preview of Output Data'}
|
||||||
</Button>
|
</Button>
|
||||||
<GenericModal
|
<GenericModal
|
||||||
onClose={() => { }}
|
onClose={() => { }}
|
||||||
|
|||||||
Reference in New Issue
Block a user