diff --git a/resources/views/livewire/project/application/backup/index.blade.php b/resources/views/livewire/project/application/backup/index.blade.php
index 727a647f7d..9c441491e6 100644
--- a/resources/views/livewire/project/application/backup/index.blade.php
+++ b/resources/views/livewire/project/application/backup/index.blade.php
@@ -18,7 +18,6 @@
's3' => $backup->save_s3 ? ($backup->s3Storages->isNotEmpty() ? $backup->s3Storages : collect([$backup->s3])->filter())->count() : -1,
'lastRunAt' => $backup->latestExecution?->finished_at?->timestamp ?? ($backup->latestExecution?->status === 'running' ? now()->timestamp : 0),
'executions' => $backup->executions_count,
- 'createdAt' => $backup->created_at?->timestamp ?? 0,
])->values()),
filterOptions: @js(collect([['value' => 'all', 'label' => 'All targets']])->merge(
$backups->map(fn ($backup) => [
@@ -26,12 +25,6 @@
'label' => $backup->targetType(),
])->unique('value')->values()
)->values()),
- sortOptions: [
- { value: 'target_asc', label: 'Target A–Z' },
- { value: 'target_desc', label: 'Target Z–A' },
- { value: 'newest', label: 'Newest first' },
- { value: 'oldest', label: 'Oldest first' },
- ],
get filteredBackups() {
const query = this.search.toLowerCase();
const filtered = this.backups.filter((backup) => {
@@ -52,8 +45,6 @@
const sortValue = sortValues[column] || sortValues.target;
const order = direction === 'desc' ? -1 : 1;
return filtered.sort((left, right) => {
- if (this.sortBy === 'newest') return right.createdAt - left.createdAt;
- if (this.sortBy === 'oldest') return left.createdAt - right.createdAt;
const leftValue = sortValue(left);
const rightValue = sortValue(right);
return order * (typeof leftValue === 'number' ? leftValue - rightValue : leftValue.localeCompare(rightValue)) ||
@@ -144,7 +135,7 @@
-
-
-
-
-
-
-
diff --git a/resources/views/livewire/project/application/deployment/index.blade.php b/resources/views/livewire/project/application/deployment/index.blade.php
index c5fe02f54b..11d868ad90 100644
--- a/resources/views/livewire/project/application/deployment/index.blade.php
+++ b/resources/views/livewire/project/application/deployment/index.blade.php
@@ -158,26 +158,29 @@
@endforeach
@endif
-
- @foreach ([
- 'newest' => 'Newest first',
- 'oldest' => 'Oldest first',
- ] as $sortValue => $sortLabel)
-
- @endforeach
-
+ {{-- The Started header sorts the full table; the embedded history has no such header. --}}
+ @if ($embedded)
+
+ @foreach ([
+ 'newest' => 'Newest first',
+ 'oldest' => 'Oldest first',
+ ] as $sortValue => $sortLabel)
+
+ @endforeach
+
+ @endif
@if ($deployments->isNotEmpty())
diff --git a/resources/views/livewire/project/application/previews.blade.php b/resources/views/livewire/project/application/previews.blade.php
index 01df79cdfe..2a3acd419a 100644
--- a/resources/views/livewire/project/application/previews.blade.php
+++ b/resources/views/livewire/project/application/previews.blade.php
@@ -231,9 +231,12 @@
{{ $previewIsStopped ? 'Deploy' : 'Redeploy' }}
+ @if (!$previewIsStopped || auth()->user()->can('delete', $application))
+
+ @endif
@if (!$previewIsStopped)