             parameters: [@props.accountID, 'account']
             fullWidth: true
 
-        advanced = @props.settings.get('advanced')
+        advanced   = @props.settings.get('advanced')
+        nbSelected = if Object.keys(@state.selected).length > 0 then null else true
 
         toggleFilterFlag = =>
             filter = if @state.filterFlag then MessageFilter.ALL else MessageFilter.FLAGGED

            loading: false
            filterFlag: false
            filterUnsead: false
        }

    componentWillReceiveProps: (props) ->
        @setState loading: false
        if props.mailboxID isnt @props.mailboxID
            @setState edited: false
            @_selected = {}

    render: ->
        compact = @props.settings.get('listStyle') is 'compact'

                                button
                                    className: 'btn btn-default trash',
                                    type: 'button',
                                    disabled: null,
                                    onClick: @refresh,
                                        span
                                            className: 'fa fa-refresh'
