From 0689ef8b17423433fa1d31050e49ec8f19c1a89a Mon Sep 17 00:00:00 2001 From: John Furrow Date: Sat, 14 Nov 2015 19:28:06 -0800 Subject: [PATCH] Add floating-action button to open torrent details panel --- client/source/scripts/components/icons/Icon.js | 5 +++++ client/source/scripts/components/torrent-list/Torrent.js | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/client/source/scripts/components/icons/Icon.js b/client/source/scripts/components/icons/Icon.js index 6b202efb..e70afc9c 100644 --- a/client/source/scripts/components/icons/Icon.js +++ b/client/source/scripts/components/icons/Icon.js @@ -15,6 +15,11 @@ const _icons = { , + dotsMini: + + + + , error: , inactive: , limits: diff --git a/client/source/scripts/components/torrent-list/Torrent.js b/client/source/scripts/components/torrent-list/Torrent.js index 344d6e21..6135eff6 100644 --- a/client/source/scripts/components/torrent-list/Torrent.js +++ b/client/source/scripts/components/torrent-list/Torrent.js @@ -2,6 +2,7 @@ import classNames from 'classnames'; import React from 'react'; import format from '../../helpers/formatData'; +import Icon from '../icons/Icon'; import ProgressBar from './ProgressBar'; const methodsToBind = [ @@ -141,7 +142,7 @@ export default class Torrent extends React.Component { onMouseDown={this.handleClick} onContextMenu={this.handleRightClick}>
    -
  • +
  • {torrent.name}
  • @@ -188,6 +189,9 @@ export default class Torrent extends React.Component {
+ ); }