Skip to content

Commit

Permalink
Fix broken client tab and widget
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxudo committed Aug 19, 2024
1 parent cdff271 commit b6a5ab5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions views/battery_tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
.append(battery_rows))));
}
// Only show and sort battery table if data exists
else if (battery_rows !== "" && d.condition != "" && d.current_percent >= 25){
else if (battery_rows !== "" && d.condition != "" && d.current_percent < 50){
$('#battery-table')
.append($('<h4>')
.append($('<i>')
Expand All @@ -357,7 +357,6 @@
}
// Show that we have no battery data
else {
console.log("her33e")
$('#battery-cnt').hide()
$('#battery-msg').text(i18n.t('no_data'));
}
Expand Down
2 changes: 1 addition & 1 deletion views/power_adapter_wattage_widget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ widget_id: power-adapter_wattage-widget
api_url: /module/power/get_wattage
i18n_title: power.adapter_wattage
icon: fa-plug
listing_link: /show/listing/power/battery
listing_link: /show/listing/power/batteries
search_key: wattage
badge: count
i18n_empty_result: no_data

0 comments on commit b6a5ab5

Please sign in to comment.