mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
13 lines
448 B
CoffeeScript
13 lines
448 B
CoffeeScript
|
define [
|
||
|
"base"
|
||
|
], (App) ->
|
||
|
App.controller "SystemMessagesController", ($scope) ->
|
||
|
$scope.messages = window.systemMessages;
|
||
|
|
||
|
App.controller "SystemMessageController", ($scope, $sce) ->
|
||
|
$scope.hidden = $.localStorage("systemMessage.hide.#{$scope.message._id}")
|
||
|
$scope.htmlContent = $sce.trustAsHtml $scope.message.content
|
||
|
|
||
|
$scope.hide = () ->
|
||
|
$scope.hidden = true
|
||
|
$.localStorage("systemMessage.hide.#{$scope.message._id}", true)
|