testing rate limiting, making API changes
This commit is contained in:
@@ -55,12 +55,21 @@ class SimpleList extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
setActiveElement = (listItem) => {
|
||||
componentWillReceiveProps = (nextprops) => {
|
||||
const { classes } = this.props;
|
||||
if (nextprops.filter[0].columnName == "TorrentName"){ //If we are using the top searchbox move back to all torrents
|
||||
this.setState({
|
||||
allTorrentsClass: classes.active,
|
||||
downloadingClass: '',
|
||||
seedingClass: '',
|
||||
activeTorrentsClass: '',
|
||||
completedTorrentsClass: '',
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
setFilter = (filterState, id) => {
|
||||
const { classes } = this.props;
|
||||
filterState = [{columnName: 'Status', value: filterState}]
|
||||
|
Reference in New Issue
Block a user