mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
12 lines
354 B
CoffeeScript
12 lines
354 B
CoffeeScript
|
define [
|
||
|
"ide/binary-files/controllers/BinaryFileController"
|
||
|
], () ->
|
||
|
class BinaryFilesManager
|
||
|
constructor: (@ide, @$scope) ->
|
||
|
@$scope.$on "entity:selected", (event, entity) =>
|
||
|
if (@$scope.ui.view != "track-changes" and entity.type == "file")
|
||
|
@openFile(entity)
|
||
|
|
||
|
openFile: (file) ->
|
||
|
@$scope.ui.view = "file"
|
||
|
@$scope.openFile = file
|