 
 
     @on 'CustomizeLinkClicked',=>
-
-      return if KD.whoami().getId() isnt @profileUser.getId()
-
-      # @avatarAreaIconMenu.emit 'CustomizeLinkClicked'
-
-      # reviving customization
-
-      return if @customizeViewsAttached
+      if (KD.whoami().getId() isnt @profileUser.getId()) or @customizeViewsAttached
+        return
+
       @customizeViewsAttached = yes
 
       types = @getAllowedTypes @profileUser

    options.defaultValue = data.profile.handles?[options.service] or ''
    super options,data

class StaticAppsListItem extends KDListItemView
  partial:(data)->
    # log data
    "<div class='static-app'>
       #{data.title}
    </div>"

class StaticGroupsListItem extends KDListItemView
  partial:(data)->
    # log data
    "<div class='static-topic'>
       #{data.title}
    </div>"

class StaticTopicsListItem extends KDListItemView
  constructor:(options,data)->
     super options,data

     @titleView = new KDCustomHTMLView
       tagName : 'span'
       cssClass : 'static-topic-title'
       partial : @getData().title

  viewAppended:->
    super
    @setTemplate @pistachio()
    @template.update()

  pistachio:->
    """
    <div class='static-topic'>
       {{> @titleView}}
    </div>
    """

class StaticMembersListItem extends KDListItemView
  constructor:(options,data)->
    super options,data
    @avatarView = new AvatarView
      size    : {width: 30, height: 30}
      noTooltip : no
      click:->
    ,@getData()

    @setClass 'static-member'

  viewAppended:->
    super
    @setTemplate @pistachio()
    @template.update()

  pistachio:->
    """
    {{> @avatarView}}
    """

  # partial:(data)->
  #   {profile} = data
  #   "<div class='static-member'>
  #      #{profile.nickname}
  #   </div>"



  reviveVisitorViews:-> # put onboarding stuff here


  displaySidebar:(show=yes,delay=250)->
    @utils.wait delay, =>
