diff --git a/app/Services/AvatarStorageService.php b/app/Services/AvatarStorageService.php index 983b144b94..889293d668 100644 --- a/app/Services/AvatarStorageService.php +++ b/app/Services/AvatarStorageService.php @@ -28,11 +28,11 @@ class AvatarStorageService $oldS3StorageId = $user->avatar_s3_storage_id; $oldPath = $user->avatar_path; - $user->update([ + $user->fill([ 'avatar_path' => $path, 'avatar_storage_type' => $storageType, 'avatar_s3_storage_id' => $s3StorageId, - ]); + ])->touch(); if ($oldPath && ($oldStorageType !== $storageType || $oldS3StorageId !== $s3StorageId)) { $this->disk($oldStorageType ?? 'local', $oldS3StorageId)->delete($oldPath); diff --git a/app/Services/TeamAvatarStorageService.php b/app/Services/TeamAvatarStorageService.php index ee66f8bff7..6ead014a29 100644 --- a/app/Services/TeamAvatarStorageService.php +++ b/app/Services/TeamAvatarStorageService.php @@ -28,7 +28,7 @@ class TeamAvatarStorageService extends AvatarStorageService 'avatar_path' => $path, 'avatar_storage_type' => $storageType, 'avatar_s3_storage_id' => $s3StorageId, - ])->save(); + ])->touch(); if ($oldPath && ($oldStorageType !== $storageType || $oldS3StorageId !== $s3StorageId)) { $this->disk($oldStorageType ?? 'local', $oldS3StorageId)->delete($oldPath); diff --git a/resources/views/livewire/server/index.blade.php b/resources/views/livewire/server/index.blade.php index c9d0b150e4..cd7a3ba4ab 100644 --- a/resources/views/livewire/server/index.blade.php +++ b/resources/views/livewire/server/index.blade.php @@ -61,6 +61,7 @@ 'name' => $server->name, 'description' => $server->description, 'href' => route('server.show', ['server_uuid' => $server->uuid]), + 'patchesHref' => route('server.security.patches', ['server_uuid' => $server->uuid]), 'status' => $status, 'statusType' => $statusType, 'resourceCount' => $server->definedResources()->count(), @@ -91,6 +92,9 @@ .some(value => String(value || '').toLowerCase().includes(query)) ); }, + openPatches(url) { + window.Livewire.navigate(url); + }, setViewMode(mode) { this.viewMode = mode; this.$wire.saveListView('servers', mode); @@ -167,7 +171,10 @@ $cardPatchBadges = array_filter($serverRow['patchBadges'], fn ($badge) => $badge['type'] !== 'success'); @endphp @if ($cardPatchBadges !== []) -
@foreach ($cardPatchBadges as $badge) @@ -222,7 +229,10 @@
@if ($showPatches) -