No need to get unstable config
this is now handled in the backend
This commit is contained in:
+7
-14
@@ -289,22 +289,15 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
|
||||
};
|
||||
|
||||
function getAppList(callback) {
|
||||
Client.getUnstableAppsConfig(function (error, unstable) {
|
||||
if (error) console.error('Error getting unstable apps config. Falling back to only stable apps.', error);
|
||||
Client.getAppstoreApps(function (error, apps) {
|
||||
if (error) return callback(error);
|
||||
|
||||
// stash this for search lookups
|
||||
$scope.unstableApps = error ? false : unstable;
|
||||
|
||||
Client.getAppstoreApps(function (error, apps) {
|
||||
if (error) return callback(error);
|
||||
|
||||
// ensure we have a tags property for further use
|
||||
apps.forEach(function (app) {
|
||||
if (!app.manifest.tags) app.manifest.tags = [];
|
||||
});
|
||||
|
||||
return callback(null, apps);
|
||||
// ensure we have a tags property for further use
|
||||
apps.forEach(function (app) {
|
||||
if (!app.manifest.tags) app.manifest.tags = [];
|
||||
});
|
||||
|
||||
return callback(null, apps);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user