diff --git a/webui/src/components/OperationTree.tsx b/webui/src/components/OperationTree.tsx
index 144c521b..82997f5e 100644
--- a/webui/src/components/OperationTree.tsx
+++ b/webui/src/components/OperationTree.tsx
@@ -281,6 +281,28 @@ const BackupView = ({ backup }: { backup?: BackupInfo }) => {
}
}
+ const deleteButton = backup.snapshotId ?
+
+ Forget (Destructive)
+ : {
+ backrestService.clearHistory(new ClearHistoryRequest({
+ ops: backup.operations.map((op) => op.id),
+ }))
+ }}
+ >
+ Delete Event
+ ;
+
return
{
}}>
Backup on {formatTime(backup.displayTime)}
- {backup.snapshotId ?
-
- Forget Snapshot (Destructive)
- : {
- backrestService.clearHistory(new ClearHistoryRequest({
- ops: backup.operations.map((op) => op.id),
- }))
- }}
- >
- Delete Event
- }
+ {backup.status !== OperationStatus.STATUS_PENDING && backup.status != OperationStatus.STATUS_INPROGRESS ? deleteButton : null}
op && !shouldHideOperation(op)} />