mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-10 04:19:38 +02:00
added link to settings to header component
This commit is contained in:
parent
32d54b57c6
commit
4ca1dd7591
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import {IndexLink, browserHistory} from 'react-router';
|
||||
import {Link, IndexLink, browserHistory} from 'react-router';
|
||||
|
||||
class Header extends React.Component {
|
||||
constructor(props) {
|
||||
@ -14,7 +14,6 @@ class Header extends React.Component {
|
||||
dataType: "json",
|
||||
success: (resp) => {
|
||||
console.log(resp)
|
||||
alert(resp.data)
|
||||
}
|
||||
});
|
||||
// Wait for 1 second for logout callback to complete
|
||||
@ -29,7 +28,10 @@ class Header extends React.Component {
|
||||
loginMenu =
|
||||
<ul className="nav navbar-nav">
|
||||
<li>
|
||||
<a href="javascript:void(0)" onClick={this.onLogout}><i className="fa fa-gears fa-fw"></i>Logout</a>
|
||||
<Link to="/settings"><i className="fa fa-gears fa-fw"></i>Settings</Link>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)" onClick={this.onLogout}><i className="fa fa-lock fa-fw"></i>Logout</a>
|
||||
</li>
|
||||
</ul>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user