Disable query for non approved apps
This commit is contained in:
@@ -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));
|
||||
// });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user