mirror of
https://github.com/zoriya/flood.git
synced 2026-06-07 20:30:42 +00:00
Add server-side notifications
This commit is contained in:
@@ -9,6 +9,7 @@ let ClientRequest = require('./ClientRequest');
|
||||
let formatUtil = require('../../shared/util/formatUtil');
|
||||
let scgi = require('../util/scgi');
|
||||
let Torrent = require('./Torrent');
|
||||
let NotificationCollection = require('./NotificationCollection');
|
||||
let TorrentCollection = require('./TorrentCollection');
|
||||
let torrentFilePropsMap = require('../../shared/constants/torrentFilePropsMap');
|
||||
let torrentGeneralPropsMap = require('../../shared/constants/torrentGeneralPropsMap');
|
||||
@@ -199,6 +200,8 @@ var client = {
|
||||
tagCount = torrentCollection.getTagCount();
|
||||
trackerCount = torrentCollection.getTrackerCount();
|
||||
|
||||
NotificationCollection.addNotification({id: 'torrent-list-update', message: 'Torrent List Updated'});
|
||||
|
||||
return torrentCollection.getTorrents();
|
||||
});
|
||||
request.onComplete(callback);
|
||||
|
||||
Reference in New Issue
Block a user