             mailboxes = @state.mailboxes
             icon = 'fa-ellipsis-h'
             toggleFavoritesLabel = t 'menu favorites on'
+
+        allBoxesAreFavorite = @state.mailboxes.length is @state.favorites.length
 
         configMailboxUrl = @buildUrl
             direction: 'first'

        accountClasses = classer
            active: isActive

        if @state.onlyFavorites
            mailboxes = @state.favorites
            icon = 'fa-ellipsis-h'

                            refreshes:         refreshes,
                            displayErrors:     @displayErrors,
                    .toJS()
                    unless allBoxesAreFavorite
                        li className: 'toggle-favorites',
                            a
                                role: 'menuitem',
                                tabIndex: 0,
                                onClick: toggleFavorites,
                                key: 'toggle',
                                    i className: 'fa ' + icon
                                    span
                                        className: 'item-label',
                                        toggleFavoritesLabel

    _initTooltips: ->
        #jQuery('#account-list [data-toggle="tooltip"]').tooltip()
