remove caas plan change UI
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user