Add filemanager chown dialog

This commit is contained in:
Johannes Zellner
2020-07-13 18:30:29 +02:00
parent fd3034bacc
commit b690c9bc95
3 changed files with 87 additions and 2 deletions

View File

@@ -2425,6 +2425,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.filesChown = function (appId, path, uid, recursive, callback) {
put('/api/v1/apps/' + appId + '/files/' + path, { uid: uid, recursive: recursive }, {}, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
callback(null, data);
});
};
Client.prototype.filesRename = function (appId, path, newPath, callback) {
put('/api/v1/apps/' + appId + '/files/' + path, { newFilePath: newPath }, {}, function (error, data, status) {
if (error) return callback(error);