mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-05-06 04:50:35 +00:00
fix: ordering of operations when viewed from backup tree
This commit is contained in:
@@ -15,7 +15,6 @@ import {
|
||||
Typography,
|
||||
} from "antd";
|
||||
import {
|
||||
ExclamationCircleOutlined,
|
||||
PaperClipOutlined,
|
||||
SaveOutlined,
|
||||
DeleteOutlined,
|
||||
|
||||
@@ -124,6 +124,9 @@ export class BackupInfoCollector {
|
||||
[...newInfo.operations, ...existing.operations],
|
||||
(o) => o.id!
|
||||
);
|
||||
existing.operations.sort((a, b) => {
|
||||
return parseInt(a.unixTimeStartMs!) - parseInt(b.unixTimeStartMs!);
|
||||
});
|
||||
if (newInfo.backupLastStatus) {
|
||||
existing.backupLastStatus = newInfo.backupLastStatus;
|
||||
}
|
||||
@@ -264,6 +267,8 @@ export const displayTypeToString = (type: DisplayType) => {
|
||||
return "Forget";
|
||||
case DisplayType.PRUNE:
|
||||
return "Prune";
|
||||
case DisplayType.RESTORE:
|
||||
return "Restore";
|
||||
default:
|
||||
return "Unknown";
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ export const App: React.FC = () => {
|
||||
style={{ color: colorTextLightSolid }}
|
||||
onClick={() => setContent(null, [])}
|
||||
>
|
||||
ResticUI{" "}
|
||||
BackRest<span style={{ color: "grey" }}>ic</span>{" "}
|
||||
</a>
|
||||
<small style={{ color: "rgba(255,255,255,0.3)", fontSize: "0.6em" }}>
|
||||
{process.env.RESTICUI_BUILD_VERSION
|
||||
|
||||
Reference in New Issue
Block a user