GUAC-1172: Implement download of specific files via click.
This commit is contained in:
1 parent
0055cf71ee
commit
c673de30e1
3 files changed
+46
-1
No files matched your search
@@ -97,6 +97,17 @@ angular.module('client').directive('guacFileBrowser', [function guacFileBrowser(
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Initiates a download of the given file. The progress of the
|
||||
* download can be observed through guacFileTransferManager.
|
||||
*
|
||||
* @param {ManagedFilesystem.File} file
|
||||
* The file to download.
|
||||
*/
|
||||
$scope.downloadFile = function downloadFile(file) {
|
||||
ManagedFilesystem.downloadFile($scope.client, $scope.filesystem, file.streamName);
|
||||
};
|
||||
|
||||
}]
|
||||
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user