Don't sort on app bundles

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2017-04-25 20:27:37 +02:00
parent 4b1ac3fef2
commit 0428254ed6
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 12 additions and 10 deletions

View File

@ -109,6 +109,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
var template = Handlebars.compile(source);
if (appList.length) {
if(categoryId !== 'app-bundles') {
appList.sort(function (a, b) {
if (a.active !== b.active) {
return (a.active ? -1 : 1)
@ -120,6 +121,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
return levelDiff;
}
});
}
var firstExperimental = false;
_.each(appList, function(app) {