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

This commit is contained in:
Michael Jumper committed 2015-07-02 21:39:09 -07:00
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);
};
}]
};