🚸 PMGR: Filter for plugin list

We can now filter all/bundled/3rdparty. Should improve overview.
This commit is contained in:
Gina Häußge committed 2019-09-24 11:07:45 +02:00
1 parent 75f6ef4bae
commit 04a13268ad
2 files changed
+21 -2

No files matched your search

@@ -32,13 +32,27 @@ $(function() {
}
},
{
"all": function(item) {
return true;
},
"bundled": function(item) {
return item.bundled;
},
"3rdparty": function(item) {
return !item.bundled;
}
},
"name",
[],
[],
["all"],
[["all", "bundled", "3rdparty"]],
0
);
if (self.plugins.currentFilters().length === 0) {
// old versions didn't have filters, we might still have that stuck in the local storage
self.plugins.addFilter("all");
}
self.repositoryplugins = new ItemListHelper(
"plugin.pluginmanager.repositoryplugins",
{