fix: Fix panorama + route scale data
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
import { Button } from "@mui/material";
|
||||
import { Button, CircularProgress } from "@mui/material";
|
||||
|
||||
export const SnapshotRestore = ({
|
||||
onDelete,
|
||||
onCancel,
|
||||
open,
|
||||
loading = false,
|
||||
}: {
|
||||
onDelete: () => void;
|
||||
onCancel: () => void;
|
||||
open: boolean;
|
||||
loading?: boolean;
|
||||
}) => {
|
||||
return (
|
||||
<div
|
||||
@@ -23,10 +25,22 @@ export const SnapshotRestore = ({
|
||||
Это действие нельзя будет отменить.
|
||||
</p>
|
||||
<div className="flex gap-4 justify-center">
|
||||
<Button variant="contained" color="primary" onClick={onDelete}>
|
||||
Да
|
||||
<Button
|
||||
variant="contained"
|
||||
color="primary"
|
||||
onClick={onDelete}
|
||||
disabled={loading}
|
||||
startIcon={
|
||||
loading ? (
|
||||
<CircularProgress size={16} color="inherit" />
|
||||
) : undefined
|
||||
}
|
||||
>
|
||||
{loading ? "Восстановление..." : "Да"}
|
||||
</Button>
|
||||
<Button onClick={onCancel} disabled={loading}>
|
||||
Нет
|
||||
</Button>
|
||||
<Button onClick={onCancel}>Нет</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user