mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
updated plugin tab labels, and added out of date plugin count
This commit is contained in:
@@ -37,6 +37,12 @@ pluginsController.get = function(req, res, next) {
|
||||
installed: payload.compatible.filter(function(plugin) {
|
||||
return plugin.installed;
|
||||
}),
|
||||
upgradeCount: payload.compatible.reduce(function(count, current) {
|
||||
if (current.installed && current.outdated) {
|
||||
++count;
|
||||
}
|
||||
return count;
|
||||
}, 0),
|
||||
download: payload.compatible.filter(function(plugin) {
|
||||
return !plugin.installed;
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user