app postprocess is already run in getApp
This commit is contained in:
@@ -1453,7 +1453,8 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype._appPostProcess = function (app) { // calculate the icon paths
|
||||
Client.prototype._appPostProcess = function (app) {
|
||||
// calculate the icon paths
|
||||
app.iconUrl = app.iconUrl ? (this.apiOrigin + app.iconUrl + '?access_token=' + token + '&' + String(Math.random()).slice(2)) : null;
|
||||
|
||||
// amend the post install confirm state
|
||||
@@ -1492,8 +1493,6 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
var tmp = {};
|
||||
angular.copy(app, tmp);
|
||||
|
||||
this._appPostProcess(tmp);
|
||||
|
||||
// only replace if the app is already known
|
||||
if (found !== -1 && this._installedApps[found].fqdn === tmp.fqdn) { // app location has not changed
|
||||
angular.copy(tmp, this._installedApps[found]);
|
||||
|
||||
Reference in New Issue
Block a user