mirror of
https://github.com/zoriya/flood.git
synced 2026-06-01 10:35:59 +00:00
client: TorrentActions: create: trigger download first
This commit is contained in:
@@ -77,13 +77,13 @@ const TorrentActions = {
|
||||
createTorrent: (options: CreateTorrentOptions) =>
|
||||
axios.post(`${baseURI}api/torrents/create`, options, {responseType: 'blob'}).then(
|
||||
(response) => {
|
||||
download(response.data, (options.name || `${Date.now()}`).concat('.torrent'));
|
||||
AppDispatcher.dispatchServerAction({
|
||||
type: 'CLIENT_ADD_TORRENT_SUCCESS',
|
||||
data: {
|
||||
count: 1,
|
||||
},
|
||||
});
|
||||
download(response.data, (options.name || `${Date.now()}`).concat('.torrent'));
|
||||
},
|
||||
() => {
|
||||
AppDispatcher.dispatchServerAction({
|
||||
|
||||
Reference in New Issue
Block a user