fix: misc bugs in restore operation view and activity bar view

This commit is contained in:
garethgeorge
2024-09-03 22:32:21 -07:00
parent 546482f115
commit 656ac9e1b2
3 changed files with 2 additions and 7 deletions
@@ -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)
+1 -1
View File
@@ -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>
);
})}
+1 -4
View File
@@ -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 ? (
<>