 
   $scope.currentUser = currentUser
 
+  if $state.params?.notifications?
+    UserNotificationSettingsModal.show currentUser?.profile
+
 )

  headerServiceProvider.state 'home', homeStateData
)

.controller("HomeCtrl", ($scope, $state, $timeout, User, Unit, ExternalName, headerService, currentUser, unitService, projectService, $rootScope, analyticsService, dateService) ->
  analyticsService.event 'Home', 'Viewed Home page'

  # Get the confugurable, external name of Doubtfire


.config((headerServiceProvider) ->
  homeStateData =
    url: "/home?notifications"
    views:
      main:
        controller: "HomeCtrl"
