Provide a dropdown for disk mounting
This commit is contained in:
@@ -1973,6 +1973,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.getBlockDevices = function (callback) {
|
||||
get('/api/v1/cloudron/block_devices', null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
callback(null, data.devices);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.disks = function (callback) {
|
||||
get('/api/v1/cloudron/disks', null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
|
||||
Reference in New Issue
Block a user