diff --git a/src/js/client.js b/src/js/client.js index 4415524f4..5ada4d57d 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -1071,11 +1071,18 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout }; Client.prototype.getApps = function (callback) { + var that = this; + get('/api/v1/apps', null, function (error, data, status) { if (error) return callback(error); if (status !== 200) return callback(new ClientError(status, data)); - callback(null, data.apps); + var apps = data.apps; + for (var i = 0; i < apps.length; i++) { + that._appPostProcess(apps[i]); // this will also set the correct iconUrl + } + + callback(null, apps); }); }; @@ -1805,7 +1812,6 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout var canManageApp = that._userInfo.isAtLeastAdmin; if (!canManageApp) { - that._appPostProcess(app); // this will also set the correct iconUrl that._updateAppCache(app); return iteratorCallback(); }