aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/components
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-05 22:54:38 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-05 22:54:38 +0100
commit989bf53ffadf1314a9dd9aaf548b115fb8e339c2 (patch)
tree067e4ab89660272f15b31418832fd21eaceeb37a /src/web/js/components
parentUpdated README. (diff)
downloadnewspipe-989bf53ffadf1314a9dd9aaf548b115fb8e339c2.tar.gz
newspipe-989bf53ffadf1314a9dd9aaf548b115fb8e339c2.tar.bz2
newspipe-989bf53ffadf1314a9dd9aaf548b115fb8e339c2.zip
Move the dashboard button in the user's menu.
Diffstat (limited to 'src/web/js/components')
-rw-r--r--src/web/js/components/Navbar.react.js13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/web/js/components/Navbar.react.js b/src/web/js/components/Navbar.react.js
index 57c38900..08716977 100644
--- a/src/web/js/components/Navbar.react.js
+++ b/src/web/js/components/Navbar.react.js
@@ -24,14 +24,11 @@ JarrNavBar = React.createClass({
</NavItem>);
}
},
- buttonAdmin: function() {
+ sectionAdmin: function() {
if(this.state.is_admin) {
- return (<NavDropdown title={<Glyphicon glyph='cog' />}
- id='admin-dropdown'>
- <MenuItem href="/admin/dashboard">
- <Glyphicon glyph="dashboard" />Dashboard
- </MenuItem>
- </NavDropdown>);
+ return (<MenuItem href="/admin/dashboard">
+ <Glyphicon glyph="dashboard" />Dashboard
+ </MenuItem>);
}
},
getModal: function() {
@@ -102,7 +99,6 @@ JarrNavBar = React.createClass({
All
</MenuItem>
</NavDropdown>
- {this.buttonAdmin()}
<NavDropdown title={<Glyphicon glyph='user' />}
id="user-dropdown">
<MenuItem href="/user/profile">
@@ -114,6 +110,7 @@ JarrNavBar = React.createClass({
<MenuItem href="/about">
<Glyphicon glyph="question-sign" />About
</MenuItem>
+ {this.sectionAdmin()}
<MenuItem href="/logout">
<Glyphicon glyph="log-out" />Logout
</MenuItem>
bgstack15