overleaf/services/web/public/coffee/ide/chat/controllers/ChatMessageController.coffee

8 lines
No EOL
214 B
CoffeeScript

define [
"base"
"ide/colors/ColorManager"
], (App, ColorManager) ->
App.controller "ChatMessageController", ["$scope", "ide", ($scope, ide) ->
$scope.hue = (user) ->
ColorManager.getHueForUserId(user.id)
]