diff --git a/webui/src/components/OperationTree.tsx b/webui/src/components/OperationTree.tsx index abfc0283..da917cf9 100644 --- a/webui/src/components/OperationTree.tsx +++ b/webui/src/components/OperationTree.tsx @@ -10,7 +10,7 @@ import { subscribeToOperations, unsubscribeFromOperations, } from "../state/oplog"; -import { Col, Divider, Empty, Modal, Row, Tree } from "antd"; +import { Button, Col, Divider, Empty, Modal, Row, Tree } from "antd"; import _ from "lodash"; import { DataNode } from "antd/es/tree"; import { @@ -29,9 +29,10 @@ import { import { OperationEvent, OperationEventType, OperationStatus } from "../../gen/ts/v1/operations_pb"; import { useAlertApi } from "./Alerts"; import { OperationList } from "./OperationList"; -import { GetOperationsRequest } from "../../gen/ts/v1/service_pb"; +import { ClearHistoryRequest, GetOperationsRequest } from "../../gen/ts/v1/service_pb"; import { isMobile } from "../lib/browserutil"; import { useShowModal } from "./ModalManager"; +import { backrestService } from "../api"; type OpTreeNode = DataNode & { backup?: BackupInfo; @@ -265,9 +266,30 @@ const BackupView = ({ backup }: { backup?: BackupInfo }) => { if (!backup) { return ; } else { - return <> -

Backup on {formatTime(backup.displayTime)}

+ return
+
+

Backup on {formatTime(backup.displayTime)}

+
+ +
+
op && !shouldHideOperation(op)} /> - ; +
; } } \ No newline at end of file diff --git a/webui/src/views/App.tsx b/webui/src/views/App.tsx index bfac2a98..9a6dd5b2 100644 --- a/webui/src/views/App.tsx +++ b/webui/src/views/App.tsx @@ -130,7 +130,6 @@ export const App: React.FC = () => { Logout -