 {Alert, Button, ButtonToolbar, ButtonGroup, Input, Row, Col,
     Panel, Popover, TabbedArea, TabPane, Well} = require('react-bootstrap')
 
-{ActivityDisplay, CloseX, DateTimePicker, ErrorDisplay, Help, Icon, LabeledRow, Loading, MarkdownInput,
+{ActivityDisplay, CloseX, DateTimePicker, DirectoryInput, ErrorDisplay, Help, Icon, LabeledRow, Loading, MarkdownInput,
     SaveButton, SearchInput, SelectorInput, TextInput, TimeAgo, Tip} = require('r_misc')
 
 {User} = require('users')

                                return true
                        return false
                    resp.directories = (path for path in resp.directories when not omit(path))
                @setState(add_searching:false, add_select:resp.directories)

    clear_and_focus_assignment_add_search_input : ->

        if @state.add_searching # already searching
            return
        search = @state.add_search.trim()
        #if search.length == 0
        #    @setState(err:undefined, add_select:undefined)
        #    return
        @setState(add_searching:true, add_select:undefined)
        add_search = @state.add_search
        salvus_client.find_directories
