Skip to content

Commit

Permalink
New widget
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxudo committed Sep 20, 2024
1 parent 56b759b commit a144d50
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"lastbackgroundsuccessfuldate": "Background Success Date",
"lastfullsuccessfuldate": "Last Full Success Date",
"lastrecommendedupdatesavailable": "Recommended Available Updates",
"lastrecommendedupdatesavailable_widget": "macOS Up-to-date",
"mac_os_uptodate": "macOS Up-to-date",
"lastresultcode": "Last Result Code",
"lastsessionsuccessful": "Session Successful",
"lastsessionsuccessful_widget": "Last Update Session Successful",
Expand Down
3 changes: 0 additions & 3 deletions softwareupdate_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,9 @@ public function get_pending_widget($column = '')
$updates = [];

foreach(Softwareupdate_model::select($column . ' AS label')
->selectRaw('count(*) AS count')
->whereNotNull($column)
->where($column, '<>', '')
->filter()
->groupBy($column)
->orderBy('count', 'desc')
->get()
->toArray() as $update){
$update_array = explode( ', ', $update['label']);
Expand Down
4 changes: 2 additions & 2 deletions views/softwareupdate_outofdate_widget.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
type: button
widget_id: su_outofdate-widget
api_url: /module/softwareupdate/get_binary_widgetx/lastrecommendedupdatesavailable
i18n_title: softwareupdate.lastrecommendedupdatesavailable_widget
icon: fa-apple
i18n_title: softwareupdate.mac_os_uptodate
icon: fa-check-square
listing_link: /show/listing/softwareupdate/softwareupdate
buttons:
- label: 1
Expand Down
14 changes: 8 additions & 6 deletions views/softwareupdate_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,22 @@ row3:
row4:
softwareupdate_force_major_deferred:
softwareupdate_force_minor_deferred:
softwareupdate_allow_rsr_removal:
softwareupdate_outofdate:
row5:
softwareupdate_allow_rsr_removal:
softwareupdate_allow_rsr_installation:
row6:
softwareupdate_ignored_updates:
softwareupdate_pending_recommended_updates:
softwareupdate_mrt_version:
row6:
row7:
softwareupdate_gatekeeper_disk_version:
softwareupdate_gatekeeper_version:
softwareupdate_kext_exclude_version:
row7:
row8:
softwareupdate_xprotect_version:
softwareupdate_xprotect_payloads_version:
softwareupdate_allow_rsr_installation:
row8:
row9:
softwareupdate_managed_updates_deferrals:
softwareupdate_managed_max_deferrals:
softwareupdate_managed_product_keys:
softwareupdate_managed_product_keys:

0 comments on commit a144d50

Please sign in to comment.