mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
11 lines
No EOL
256 B
CoffeeScript
11 lines
No EOL
256 B
CoffeeScript
define [
|
|
"base"
|
|
"ide/colors/ColorManager"
|
|
], (App, ColorManager) ->
|
|
App.controller "ChatMessageController", ["$scope", "ide", ($scope, ide) ->
|
|
$scope.hue = (user) ->
|
|
if !user?
|
|
return 0
|
|
else
|
|
return ColorManager.getHueForUserId(user.id)
|
|
] |