No need to get unstable config

this is now handled in the backend
This commit is contained in:
Girish Ramakrishnan
2019-05-05 07:38:32 -07:00
parent 51521926e7
commit 0a9947dbb9
+7 -14
View File
@@ -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);
});
}