feat(search): moved search to header (now search are always on)

This commit is contained in:
Alexey Kasyanchuk
2018-05-05 18:33:14 +03:00
parent 0e9c0e4411
commit 31a6a44184
3 changed files with 100 additions and 111 deletions

View File

@ -2,6 +2,7 @@ import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import Background from './images/pirate-mod.jpg'
import RaisedButton from 'material-ui/RaisedButton';
import Search from './search'
class Header extends React.Component {
constructor(props)
@ -249,7 +250,15 @@ class Header extends React.Component {
{
((window.currentWindow && !window.currentWindow.isModal()) || typeof WEB !== 'undefined')
&&
<div className='fs0-85 pad0-75 column peers-status' style={{marginLeft: 'auto', marginTop: '-10px', color: window.peers > 0 ? '#42f445' : 'white'}}>
<div className='fs0-85 pad0-75 column peers-status' style={{
marginLeft: 'auto',
marginTop: '-10px',
color: window.peers > 0 ? '#42f445' : 'white',
backgroundColor: 'white',
zIndex: 2
}}>
<Search />
<div>rats peers: {window.peers} [{window.peersTorrents} torrents] {window.peers > 0 ? ' (p2p rats search enabled)' : ' (p2p rats search not available at this moment)'}</div>
{
window.p2pStatus == 0