diff --git a/src/app/feed.js b/src/app/feed.js index 92d94e0..200beb4 100644 --- a/src/app/feed.js +++ b/src/app/feed.js @@ -17,6 +17,15 @@ export default class RecentTorrents extends Component { this.forceUpdate(); } })) + this.feedFunc = ({feed}) => { + this.torrents = feed + this.forceUpdate() + }; + window.torrentSocket.on('feedUpdate', this.feedFunc); + } + componentWillUnmount() { + if(this.feedFunc) + window.torrentSocket.off('feedUpdate', this.feedFunc); } render() { return ( diff --git a/translations/en.json b/translations/en.json index c61df11..d407aa2 100644 --- a/translations/en.json +++ b/translations/en.json @@ -163,6 +163,7 @@ "Activity": "Activity", "downloading": "downloading", "Cancel download": "Cancel download", - "Back to previus": "Back to previus" + "Back to previus": "Back to previus", + "Processing files": "Processing files" } } \ No newline at end of file diff --git a/translations/ru.json b/translations/ru.json index 5220a1a..7993a7d 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -163,6 +163,7 @@ "Activity": "Активность", "downloading": "скачивается", "Cancel download": "Отвенить закачку", - "Back to previus": "Вернуться на предыдущую" + "Back to previus": "Вернуться на предыдущую", + "Processing files": "Обработка файлов" } } \ No newline at end of file diff --git a/translations/ua.json b/translations/ua.json index 551b10b..aac2252 100644 --- a/translations/ua.json +++ b/translations/ua.json @@ -163,6 +163,7 @@ "Activity": "Activity", "downloading": "downloading", "Cancel download": "Cancel download", - "Back to previus": "Back to previus" + "Back to previus": "Back to previus", + "Processing files": "Processing files" } } \ No newline at end of file