Add remount button for mountlike backup configs

This commit is contained in:
Johannes Zellner
2021-10-11 17:45:55 +02:00
parent 332158baaa
commit b089a1f580
5 changed files with 39 additions and 3 deletions

View File

@@ -811,6 +811,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.remountBackupStorage = function (callback) {
post('/api/v1/backups/remount', {}, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 202) return callback(new ClientError(status, data));
callback(null);
});
};
Client.prototype.getSupportConfig = function (callback) {
get('/api/v1/settings/support_config', null, function (error, data, status) {
if (error) return callback(error);