fix: product description showing up instead of name in two locations (#957)

made by @kenshin133
This commit is contained in:
S0ly 2024-05-22 22:13:42 +02:00 committed by GitHub
commit 396d255f6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -228,7 +228,7 @@ class ServerController extends Controller
return '<a href="' . route('admin.users.show', $server->user->id) . '">' . $server->user->name . '</a>';
})
->addColumn('resources', function (Server $server) {
return $server->product->description;
return $server->product->name;
})
->addColumn('actions', function (Server $server) {
$suspendColor = $server->isSuspended() ? 'btn-success' : 'btn-warning';