Only refresh the individual app that is being managed

This commit is contained in:
Girish Ramakrishnan
2018-06-26 08:49:43 -07:00
parent df6da7dd1c
commit b41d0379f0
2 changed files with 24 additions and 7 deletions

View File

@@ -1112,6 +1112,23 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
}
};
// this requires app:manage permissions
Client.prototype.refreshAppCache = function (id, callback) {
var that = this;
callback = typeof callback === 'function' ? callback : function () {};
this.getApp(id, function (error, app) {
if (error) return callback(error);
that._updateAppCache(app);
that._installedApps = that._installedApps.sort(function (app1, app2) { return app1.fqdn.localeCompare(app2.fqdn); });
callback(null, app);
});
};
Client.prototype.refreshInstalledApps = function (callback) {
var that = this;