mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-14 17:43:31 +00:00
Only show output files which are images or pdfs
This commit is contained in:
parent
7fc99a38f8
commit
2cfc2b4738
1 changed files with 3 additions and 1 deletions
|
@ -342,7 +342,9 @@ define [
|
|||
})
|
||||
.then (resp) ->
|
||||
if resp.data.status == 'success'
|
||||
$scope.data.projectOutputFiles = resp.data.outputFiles
|
||||
filteredFiles = resp.data.outputFiles.filter (f) ->
|
||||
f.path.match(/.*\.(pdf|png|jpeg|jpg|gif)/)
|
||||
$scope.data.projectOutputFiles = filteredFiles
|
||||
_reset(err: false)
|
||||
else
|
||||
$scope.data.projectOutputFiles = null
|
||||
|
|
Loading…
Add table
Reference in a new issue