Display swap

This commit is contained in:
Girish Ramakrishnan
2019-11-21 13:22:24 -08:00
parent 682eb8d6e5
commit 646f669c14
2 changed files with 51 additions and 14 deletions
+9
View File
@@ -1365,6 +1365,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.memory = function (callback) {
get('/api/v1/cloudron/memory', null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
callback(null, data);
});
};
Client.prototype.graphs = function (targets, from, options, callback) {
var config = {
params: {