feat/005-bulk-operations #5

Merged
ahmido merged 25 commits from feat/005-bulk-operations into dev 2025-12-25 13:32:37 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit d718a127c5 - Show all commits

View File

@ -36,7 +36,7 @@ public function backupSet(): BelongsTo
public function scopeDeletable($query)
{
return $query->whereIn('status', ['completed', 'failed', 'aborted', 'completed_with_errors', 'partial']);
return $query->whereIn('status', ['completed', 'failed', 'aborted', 'completed_with_errors', 'partial', 'previewed']);
}
public function isDeletable(): bool
@ -44,6 +44,6 @@ public function isDeletable(): bool
$status = strtolower(trim((string) $this->status));
$status = str_replace([' ', '-'], '_', $status);
return in_array($status, ['completed', 'failed', 'aborted', 'completed_with_errors', 'partial'], true);
return in_array($status, ['completed', 'failed', 'aborted', 'completed_with_errors', 'partial', 'previewed'], true);
}
}

View File

@ -24,6 +24,7 @@
'aborted',
'completed_with_errors',
'partial',
'previewed',
'running',
'pending',
];
@ -52,6 +53,7 @@
'completed_with_errors',
'failed',
'partial',
'previewed',
]);
});