Only refresh the individual app that is being managed
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user