Add modal to edit backup label and preserveSecs
This commit is contained in:
@@ -1171,6 +1171,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
}
|
||||
};
|
||||
|
||||
Client.prototype.editBackup = function (backupId, label, preserveSecs, callback) {
|
||||
post('/api/v1/backups/' + backupId, { label: label, preserveSecs: preserveSecs }, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
callback(null);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.startBackup = function (callback) {
|
||||
post('/api/v1/backups/create', {}, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
|
||||
Reference in New Issue
Block a user