mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-09-23 00:15:45 +00:00
fix: misc bugs in restore operation view and activity bar view
This commit is contained in:
@@ -74,8 +74,6 @@ func restoreHelper(ctx context.Context, st ScheduledTask, taskRunner TaskRunner,
|
||||
}
|
||||
lastSent = time.Now()
|
||||
|
||||
zap.S().Infof("restore progress: %v", entry)
|
||||
|
||||
restoreOp.LastStatus = entry
|
||||
|
||||
sendWg.Add(1)
|
||||
|
||||
@@ -67,7 +67,7 @@ export const ActivityBar = () => {
|
||||
return (
|
||||
<span key={idx}>
|
||||
{displayName} in progress for plan {op.planId} to {op.repoId} for{" "}
|
||||
{formatDuration(Number(op.unixTimeEndMs - op.unixTimeStartMs))}
|
||||
{formatDuration(Date.now() - Number(op.unixTimeStartMs))}
|
||||
</span>
|
||||
);
|
||||
})}
|
||||
|
||||
@@ -380,10 +380,7 @@ const RestoreOperationStatus = ({ operation }: { operation: Operation }) => {
|
||||
<>
|
||||
Restore {restoreOp.path} to {restoreOp.target}
|
||||
{!isDone ? (
|
||||
<Progress
|
||||
percent={Math.round(progress * 1000) / 1000}
|
||||
status="active"
|
||||
/>
|
||||
<Progress percent={Math.round(progress * 1000) / 10} status="active" />
|
||||
) : null}
|
||||
{operation.status == OperationStatus.STATUS_SUCCESS ? (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user