mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
re-order right hand side dropdown options (#10534)
This commit is contained in:
parent
17e17da00d
commit
899a2fa1c7
@ -57,22 +57,6 @@ export class BrowserDropdown extends React.Component {
|
|||||||
const { fetchServerInfo } = this.props
|
const { fetchServerInfo } = this.props
|
||||||
fetchServerInfo()
|
fetchServerInfo()
|
||||||
}
|
}
|
||||||
fullScreen(e) {
|
|
||||||
e.preventDefault()
|
|
||||||
let el = document.documentElement
|
|
||||||
if (el.requestFullscreen) {
|
|
||||||
el.requestFullscreen()
|
|
||||||
}
|
|
||||||
if (el.mozRequestFullScreen) {
|
|
||||||
el.mozRequestFullScreen()
|
|
||||||
}
|
|
||||||
if (el.webkitRequestFullscreen) {
|
|
||||||
el.webkitRequestFullscreen()
|
|
||||||
}
|
|
||||||
if (el.msRequestFullscreen) {
|
|
||||||
el.msRequestFullscreen()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
logout(e) {
|
logout(e) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
web.Logout()
|
web.Logout()
|
||||||
@ -87,24 +71,30 @@ export class BrowserDropdown extends React.Component {
|
|||||||
<i className="fas fa-bars" />
|
<i className="fas fa-bars" />
|
||||||
</Dropdown.Toggle>
|
</Dropdown.Toggle>
|
||||||
<Dropdown.Menu className="dropdown-menu-right">
|
<Dropdown.Menu className="dropdown-menu-right">
|
||||||
|
<li>
|
||||||
|
<a href="" onClick={this.showChangePassword.bind(this)}>
|
||||||
|
Change Password <i className="fas fa-cog" />
|
||||||
|
</a>
|
||||||
|
{this.state.showChangePasswordModal && (
|
||||||
|
<ChangePasswordModal
|
||||||
|
serverInfo={serverInfo}
|
||||||
|
hideChangePassword={this.hideChangePassword.bind(this)}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a target="_blank" href="https://docs.min.io/?ref=ob">
|
||||||
|
Documentation <i className="fas fa-book" />
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a target="_blank" href="https://github.com/minio/minio">
|
<a target="_blank" href="https://github.com/minio/minio">
|
||||||
GitHub <i className="fab fa-github" />
|
GitHub <i className="fab fa-github" />
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="" onClick={this.fullScreen}>
|
<a target="_blank" href="https://min.io/pricing?ref=ob">
|
||||||
Fullscreen <i className="fas fa-expand" />
|
Get Support <i className="fas fa-question-circle" />
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a target="_blank" href="https://docs.min.io/">
|
|
||||||
Documentation <i className="fas fa-book" />
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a target="_blank" href="https://slack.min.io">
|
|
||||||
Ask for help <i className="fas fa-question-circle" />
|
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -118,20 +108,9 @@ export class BrowserDropdown extends React.Component {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href="" onClick={this.showChangePassword.bind(this)}>
|
|
||||||
Change Password <i className="fas fa-cog" />
|
|
||||||
</a>
|
|
||||||
{this.state.showChangePasswordModal && (
|
|
||||||
<ChangePasswordModal
|
|
||||||
serverInfo={serverInfo}
|
|
||||||
hideChangePassword={this.hideChangePassword.bind(this)}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a href="" id="logout" onClick={this.logout}>
|
<a href="" id="logout" onClick={this.logout}>
|
||||||
Sign Out <i className="fas fa-sign-out-alt" />
|
Logout <i className="fas fa-sign-out-alt" />
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</Dropdown.Menu>
|
</Dropdown.Menu>
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user