Disable query for non approved apps

This commit is contained in:
Johannes Zellner
2017-01-10 14:01:46 +01:00
parent 03383eecbc
commit 06a9a82da0

View File

@@ -359,17 +359,19 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
if (!app.manifest.tags) app.manifest.tags = [];
});
Client.getNonApprovedApps(function (error, result) {
if (error) return callback(error);
return callback(null, apps);
// add testing tag to the manifest for UI and search reasons
result.forEach(function (app) {
if (!app.manifest.tags) app.manifest.tags = [];
app.manifest.tags.push('testing');
});
// Client.getNonApprovedApps(function (error, result) {
// if (error) return callback(error);
callback(null, apps.concat(result));
});
// // add testing tag to the manifest for UI and search reasons
// result.forEach(function (app) {
// if (!app.manifest.tags) app.manifest.tags = [];
// app.manifest.tags.push('testing');
// });
// callback(null, apps.concat(result));
// });
});
}