Add volume remount button

This commit is contained in:
Johannes Zellner
2021-10-11 15:51:26 +02:00
parent 67918900bf
commit 80f860493a
4 changed files with 33 additions and 1 deletions

View File

@@ -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: {