GUAC-1172: Implement download of specific files via click.

This commit is contained in:
Michael Jumper
2015-07-01 11:49:11 -07:00
parent 0055cf71ee
commit c673de30e1
3 changed files with 46 additions and 1 deletions

View File

@@ -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);
};
}]
};