Show the pdf if it was already loaded.

This ensures the pdf will be visible if the user switches to fullscreen-view.
This commit is contained in:
Shane Kilkelly 2016-03-22 14:38:48 +00:00
parent b8c3b427ee
commit d5c280dc4d

View file

@ -6,7 +6,9 @@ define [
App.controller "PdfController", ($scope, $http, ide, $modal, synctex, event_tracking, localStorage) ->
autoCompile = true
$scope.pdf.view = 'uncompiled' # uncompiled | pdf | errors
# pdf.view = uncompiled | pdf | errors
$scope.pdf.view = if $scope?.pdf?.url then 'pdf' else 'uncompiled'
$scope.shouldShowLogs = false
$scope.$on "project:joined", () ->