Adjust Add Torrent action payload

This commit is contained in:
John Furrow
2015-11-08 16:01:22 -08:00
parent 6c5aaa12b2
commit 334b3f48e8
2 changed files with 20 additions and 7 deletions
+17 -3
View File
@@ -6,8 +6,10 @@ $foreground: #53718a;
$main-content--background: #e9eef2;
$header--foreground: #313436;
// form elements
$form--label--foreground: #979999;
$form--label--foreground: #53718a;
$textbox--background: rgba($main-content--background, 0.3);
$textbox--foreground: $foreground;
@@ -18,8 +20,20 @@ $textbox--active--border: $main-content--background;
$textbox--active--foreground: $blue;
$textbox--active--placeholder: $textbox--placeholder;
$textbox-repeater--button--background: #fff;
$textbox-repeater--button--background--hover: $main-content--background;
$textbox-repeater--button--border: rgba($background, 0.1);
$textbox-repeater--button--border--hover: rgba($background, 0.2);
$textbox-repeater--button--foreground: rgba($background, 0.3);
$textbox-repeater--button--foreground--hover: rgba($background, 0.5);
$button--primary--foreground: #fff;
$button--primary--background: $green;
$button--primary--background: $blue;
$button--primary--background--hover: darken($button--primary--background, 5%);
$button--deemphasized--foreground: #66717a;
$button--deemphasized--background: $main-content--background;
$button--deemphasized--foreground--hover: darken($button--deemphasized--foreground, 5%);
$button--deemphasized--background--hover: darken($button--deemphasized--background, 5%);
// action bar
$action-bar--background: transparent;
@@ -113,6 +127,6 @@ $dropdown--item--foreground--active: $blue;
// modal windows
$modal--background: #fff;
$modal--overlay: rgba($background, 0.5);
$modal--header--foreground: #aaa8ab;
$modal--header--foreground: $header--foreground;
$modal--content--border: rgba($background, 0.1);
$modal--content--shadow: rgba($background, 0.3);
@@ -1,9 +1,10 @@
import axios from 'axios';
export function addTorrent(hashes) {
export function addTorrents(urls, destination) {
return function(dispatch) {
return axios.post('/torrents/add', {
hashes
urls,
destination
})
.then((json = {}) => {
return json.data;
@@ -22,8 +23,6 @@ export function addTorrent(hashes) {
}
};
// CLIENT_RECEIVE_TRANSFER_DATA
export function fetchTransferData() {
return function(dispatch) {
return axios.get('/client/stats')