Latest version #12

Merged
Kerblif merged 46 commits from preview into master 2025-05-29 10:12:00 +00:00
2 changed files with 18 additions and 12 deletions
Showing only changes of commit 3110683c7d - Show all commits

View File

@ -234,10 +234,12 @@ export const CreateSightArticle = ({
} }
if (onSave) { if (onSave) {
onSave(response.data); onSave(response.data);
if (notification && typeof notification.open === "function") {
notification.open({ notification.open({
message: "Статья успешно создана", message: "Статья успешно создана",
type: "success", type: "success",
}); });
}
} else { } else {
window.location.reload(); window.location.reload();
} }

View File

@ -65,16 +65,20 @@ export const SnapshotList = observer(() => {
} }
); );
notification?.open({ if (notification && typeof notification.open === "function") {
notification.open({
message: "Cнапшот восстановлен", message: "Cнапшот восстановлен",
type: "success", type: "success",
}); });
}
} catch (error) { } catch (error) {
notification?.open({ if (notification && typeof notification.open === "function") {
notification.open({
message: "Ошибка при восстановлении снимка", message: "Ошибка при восстановлении снимка",
type: "error", type: "error",
}); });
} }
}
}; };
const columns = React.useMemo<GridColDef[]>( const columns = React.useMemo<GridColDef[]>(