diff --git a/src/components/dialogs/PreferencesDialog/PeersTabPanel/index.js b/src/components/dialogs/PreferencesDialog/PeersTabPanel/index.js
index cb1f807..d8fd481 100644
--- a/src/components/dialogs/PreferencesDialog/PeersTabPanel/index.js
+++ b/src/components/dialogs/PreferencesDialog/PeersTabPanel/index.js
@@ -1,6 +1,9 @@
import React, { Component} from 'react';
import CSSModules from 'react-css-modules';
import { inject, observer } from 'mobx-react';
+import autobind from 'autobind-decorator';
+
+import { Button } from 'react-toolbox/lib/button'
import styles from '../styles/index.css';
@@ -9,10 +12,23 @@ import CheckRow from '../fields/CheckRow';
import CheckValueRow from '../fields/CheckValueRow';
import SelectRow from '../fields/SelectRow';
-@inject('view_store')
+@inject('view_store', 'session_store')
@observer
@CSSModules(styles)
class PeersTabPanel extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ blocklistSize: (this.props.session_store.blocklistSize == -1) ? '?' : this.props.session_store.blocklistSize,
+ };
+ }
+
+ @autobind updateBlocklist() {
+ this.props.session_store.updateBlocklist().then((size) => {
+ this.setState({ blocklistSize: size });
+ });
+ }
+
render() {
const encryption = {
tolerated: 'Allow encryption',
@@ -36,11 +52,11 @@ class PeersTabPanel extends Component {