File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Http/Controllers/StatusPage Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function index(): View
19
19
{
20
20
return view ('cachet::status-page.index ' , [
21
21
'componentGroups ' => ComponentGroup::query ()
22
- ->with (['components ' => fn ($ query ) => $ query ->orderBy ('order ' )->withCount ('incidents ' )])
22
+ ->with (['components ' => fn ($ query ) => $ query ->enabled ()-> orderBy ('order ' )->withCount ('incidents ' )])
23
23
->visible (auth ()->check ())
24
24
->when (auth ()->check (), fn ($ query ) => $ query ->users (), fn ($ query ) => $ query ->guests ())
25
25
->get (),
@@ -31,6 +31,7 @@ public function index(): View
31
31
->setRelation (
32
32
'components ' ,
33
33
Component::query ()
34
+ ->enabled ()
34
35
->whereNull ('component_group_id ' )
35
36
->orderBy ('order ' )
36
37
->withCount ('incidents ' )
You can’t perform that action at this time.
0 commit comments