fix: Fix panorama + route scale data

This commit is contained in:
2025-07-26 11:48:41 +03:00
parent 89d7fc2748
commit 470a58a3fa
7 changed files with 43 additions and 20 deletions

View File

@@ -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>