mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 20:14:56 -05:00
15 lines
376 B
CoffeeScript
15 lines
376 B
CoffeeScript
|
define [
|
||
|
], () ->
|
||
|
|
||
|
class LabelsManager
|
||
|
|
||
|
constructor: (@ide, @$scope, @labels) ->
|
||
|
|
||
|
@ide.socket.on 'broadcastDocLabels', (data) =>
|
||
|
@labels.onBroadcastDocLabels(data)
|
||
|
@$scope.$on 'entity:deleted', @labels.onEntityDeleted
|
||
|
@$scope.$on 'file:upload:complete', @labels.fileUploadComplete
|
||
|
|
||
|
loadProjectLabelsFromServer: () ->
|
||
|
@labels.loadProjectLabelsFromServer()
|