mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-05 04:46:03 +01:00
Including grav out of date as part of the equation
This commit is contained in:
@@ -93,7 +93,7 @@ $(function () {
|
|||||||
|
|
||||||
// dashboard
|
// dashboard
|
||||||
if ($('.updates-chart').length) {
|
if ($('.updates-chart').length) {
|
||||||
var missing = resources.total * 100 / installed,
|
var missing = (resources.total + (grav.isUpdatable ? 1 : 0)) * 100 / (installed + (grav.isUpdatable ? 1 : 0)),
|
||||||
updated = 100 - missing;
|
updated = 100 - missing;
|
||||||
UpdatesChart.update({series: [updated, missing]});
|
UpdatesChart.update({series: [updated, missing]});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user