mirror of
https://github.com/zoriya/flood.git
synced 2026-05-31 10:22:44 +00:00
Fix torrent sort
This commit is contained in:
@@ -40,7 +40,6 @@ export default class SettingsModal extends React.Component {
|
||||
this.handleSettingsStoreChange);
|
||||
SettingsStore.listen(EventTypes.SETTINGS_SAVE_REQUEST_ERROR,
|
||||
this.handleSaveSettingsError);
|
||||
SettingsStore.fetchFloodSettings('speedLimits');
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
||||
@@ -30,7 +30,6 @@ class SpeedLimitDropdown extends React.Component {
|
||||
this.handleSettingsFetchRequestSuccess);
|
||||
TransferDataStore.listen(EventTypes.CLIENT_TRANSFER_DATA_REQUEST_SUCCESS,
|
||||
this.onTransferDataRequestSuccess);
|
||||
SettingsStore.fetchFloodSettings('speedLimits');
|
||||
TransferDataStore.fetchTransferData();
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@ export default class ActionBar extends React.Component {
|
||||
componentDidMount() {
|
||||
this.onSortChange();
|
||||
SettingsStore.listen(EventTypes.SETTINGS_CHANGE, this.onSortChange);
|
||||
SettingsStore.fetchFloodSettings('sortTorrents');
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
||||
@@ -112,8 +112,7 @@ export default class SortDropdown extends React.Component {
|
||||
<Dropdown
|
||||
handleItemSelect={this.handleItemSelect}
|
||||
header={this.getDropdownHeader()}
|
||||
menuItems={this.getDropdownMenus()}
|
||||
/>
|
||||
menuItems={this.getDropdownMenus()} />
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user