Skip to content

Commit

Permalink
fix: can download file submissions from magnifying glass
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed Mar 3, 2022
1 parent d77bf62 commit b2c0ec7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ angular.module('doubtfire.projects.states.dashboard.directives.task-dashboard',
$scope.triggerTransition = (status) ->
taskService.updateTaskStatus $scope.task.project().unit(), $scope.task.project(), $scope.task, status

$scope.downloadSubmission = () ->
fileDownloaderService.downloadFile($scope.urls.taskSubmissionPdfAttachmentUrl)
$scope.downloadSubmission = () ->
fileDownloaderService.downloadFile($scope.urls.taskSubmissionPdfAttachmentUrl)

$scope.downloadSubmittedFiles = () ->
fileDownloaderService.downloadFile($scope.urls.taskFilesUrl)
$scope.downloadSubmittedFiles = () ->
fileDownloaderService.downloadFile($scope.urls.taskFilesUrl)


)
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a ng-click="downloadSubmission()">Download Submission PDF</a>
</li>
<li ng-show="task.has_pdf">
<a href="downloadSubmittedFiles()">Download Submitted Files</a>
<a ng-click="downloadSubmittedFiles()">Download Submitted Files</a>
</li>
<li ng-if="overseerEnabled()">
<a ng-click="showSubmissionHistoryModal()">View Submission History</a>
Expand Down

0 comments on commit b2c0ec7

Please sign in to comment.