remove caas plan change UI

This commit is contained in:
Girish Ramakrishnan
2018-12-13 09:33:38 -08:00
parent 30ea7e854d
commit 5d4f942d46
3 changed files with 1 additions and 197 deletions

View File

@@ -630,15 +630,6 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
});
};
Client.prototype.getCaasConfig = function (callback) {
get('/api/v1/caas/config', null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
callback(null, data);
});
};
Client.prototype.addAuthorizedKey = function (key, callback) {
put('/api/v1/cloudron/ssh/authorized_keys', { key: key }, null, function (error, data, status) {
if (error) return callback(error);
@@ -1153,18 +1144,6 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
});
};
Client.prototype.changePlan = function (options, password, callback) {
var data = options;
data.password = password;
post('/api/v1/caas/change_plan', data, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 202) return callback(new ClientError(status, data));
callback(null, data);
});
};
Client.prototype.setAdmin = function (domain, password, callback) {
post('/api/v1/domains/' + domain + '/set_admin', { password: password }, null, function (error, data, status) {
if (error) return callback(error);