fix: product description showing up instead of name in two locations (#957)
made by @kenshin133
This commit is contained in:
commit
396d255f6b
|
@ -228,7 +228,7 @@ class ServerController extends Controller
|
||||||
return '<a href="' . route('admin.users.show', $server->user->id) . '">' . $server->user->name . '</a>';
|
return '<a href="' . route('admin.users.show', $server->user->id) . '">' . $server->user->name . '</a>';
|
||||||
})
|
})
|
||||||
->addColumn('resources', function (Server $server) {
|
->addColumn('resources', function (Server $server) {
|
||||||
return $server->product->description;
|
return $server->product->name;
|
||||||
})
|
})
|
||||||
->addColumn('actions', function (Server $server) {
|
->addColumn('actions', function (Server $server) {
|
||||||
$suspendColor = $server->isSuspended() ? 'btn-success' : 'btn-warning';
|
$suspendColor = $server->isSuspended() ? 'btn-success' : 'btn-warning';
|
||||||
|
|
Loading…
Reference in a new issue