Skip to content

Commit

Permalink
Apply ordering of component groups to status page
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Jan 25, 2025
1 parent 84869a4 commit 8b134dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Http/Controllers/StatusPage/StatusPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function index(): View
'componentGroups' => ComponentGroup::query()
->with(['components' => fn ($query) => $query->enabled()->orderBy('order')->withCount('incidents')])
->visible(auth()->check())
->orderBy('order')
->when(auth()->check(), fn (Builder $query) => $query->users(), fn ($query) => $query->guests())
->get(),
'ungroupedComponents' => Component::query()
Expand Down

0 comments on commit 8b134dc

Please sign in to comment.