No context menu for Browsing

This commit is contained in:
James Barnsley
2017-11-18 08:28:45 +13:00
parent cffc475799
commit a91dd336ea
2 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class List extends React.Component{
)
})
}
<ContextMenuTrigger onTrigger={e => this.handleContextMenu(e, row)} />
{this.props.nocontext ? null : <ContextMenuTrigger onTrigger={e => this.handleContextMenu(e, row)} />}
</div>
)
})

View File

@ -124,6 +124,7 @@ class LibraryBrowse extends React.Component{
<Header icon="music" title={title} options={options} uiActions={this.props.uiActions} />
<section className="content-wrapper">
<List
nocontext
columns={[{ name: 'name', width: '100'}]}
rows={items.folders}
className="library-local-directory-list"