   handleUnreadCountClick: ->
 
     @setCoordinates()
-    @setState { showWidget: yes }
+    @setState { widgetVisible: yes }
 
 
   onWidgetClose: ->
 
-    @setState { showWidget: no }
+    @setState { widgetVisible: no }
 
 
   renderStackUpdatedWidget: ->
 
-    { coordinates, showWidget } = @state
+    { coordinates, widgetVisible } = @state
 
-    return null  unless showWidget
+    return null  unless widgetVisible
     return null  unless @props.stack?.getUnreadCount()
     return null  if not coordinates.left and coordinates.top
 



  onScrollPage: -> _.debounce =>
    @setState({ showWidget: no })
  , 500, { leading: yes, trailing: no }



_ = require 'lodash'
$ = require 'jquery'
kd = require 'kd'
React = require 'app/react'

isAdmin = require 'app/util/isAdmin'
whoami = require 'app/util/whoami'
isDefaultTeamStack = require 'app/util/isdefaultteamstack'
getBoundingClientReact = require 'app/util/getBoundingClientReact'

TimeAgo = require 'app/components/common/timeago'
UnreadCount = require 'app/components/sidebarmachineslistitem/unreadcount'
StackUpdatedWidget = require 'app/sidebar/components/stackupdatedwidget'


module.exports = class StackTemplateItem extends React.Component

