Add volume remount button
This commit is contained in:
@@ -2754,6 +2754,17 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.remountVolume = function (volumeId, callback) {
|
||||
var that = this;
|
||||
|
||||
post('/api/v1/volumes/' + volumeId + '/remount', {}, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 202) return callback(new ClientError(status, data));
|
||||
|
||||
callback();
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.removeVolume = function (volume, callback) {
|
||||
var config = {
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user