mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-24 05:17:24 +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 React from 'react';
|
||||||
import {IndexLink, browserHistory} from 'react-router';
|
import {Link, IndexLink, browserHistory} from 'react-router';
|
||||||
|
|
||||||
class Header extends React.Component {
|
class Header extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
@ -14,7 +14,6 @@ class Header extends React.Component {
|
|||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: (resp) => {
|
success: (resp) => {
|
||||||
console.log(resp)
|
console.log(resp)
|
||||||
alert(resp.data)
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Wait for 1 second for logout callback to complete
|
// Wait for 1 second for logout callback to complete
|
||||||
@ -29,7 +28,10 @@ class Header extends React.Component {
|
|||||||
loginMenu =
|
loginMenu =
|
||||||
<ul className="nav navbar-nav">
|
<ul className="nav navbar-nav">
|
||||||
<li>
|
<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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user