Skip to content

Commit

Permalink
[TempFix] Discord ID on USertable (#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
1day2die authored Nov 21, 2024
2 parents e5c68b9 + 2d2e1e0 commit c26d81f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/Http/Controllers/Admin/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,12 @@ public function dataTable(Request $request)
->addColumn('verified', function (User $user) {
return $user->getVerifiedStatus();
})
/* This broke the ability to search the table. Have to revisit later
->addColumn('discordId', function (User $user) {
return $user->discordUser ? $user->discordUser->id : '';
})
*/
->addColumn('actions', function (User $user) {
$suspendColor = $user->isSuspended() ? 'btn-success' : 'btn-warning';
$suspendIcon = $user->isSuspended() ? 'fa-play-circle' : 'fa-pause-circle';
Expand Down
6 changes: 5 additions & 1 deletion themes/default/views/admin/users/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,15 @@ function submitResult() {
order: [
[11, "desc"]
],
columns: [{
columns: [
/* This broke the ability to search the table. Have to revisit later
{
data: 'discordId',
visible: false,
name: 'discordUser.id'
},
*/
{
data: 'pterodactyl_id',
visible: false
Expand Down

0 comments on commit c26d81f

Please sign in to comment.