mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Removed useless url route check
This commit is contained in:
@@ -163,14 +163,12 @@ class SideNav extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleFilterButtonContextMenu (event) {
|
handleFilterButtonContextMenu (event) {
|
||||||
const { location, data } = this.props
|
const { data } = this.props
|
||||||
if (location.pathname === '/trashed') {
|
const entries = data.trashedSet.toJS()
|
||||||
const entries = data.trashedSet.toJS()
|
const menu = Menu.buildFromTemplate([
|
||||||
const menu = Menu.buildFromTemplate([
|
{ label: 'Empty Trash', click: () => this.emptyTrash(entries) }
|
||||||
{ label: 'Empty Trash', click: () => this.emptyTrash(entries) }
|
])
|
||||||
])
|
menu.popup()
|
||||||
menu.popup()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
|
|||||||
Reference in New Issue
Block a user