mirror of
https://github.com/opensupports/opensupports.git
synced 2025-04-08 18:35:06 +02:00
remove header options when maintenance-mode is on (#1189)
This commit is contained in:
parent
62bd70cc3b
commit
f2adb160be
@ -13,12 +13,24 @@ class MainLayoutHeader extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div className="main-layout-header">
|
||||
{this.renderAccessLinks()}
|
||||
<LanguageSelector {...this.getLanguageSelectorProps()} />
|
||||
{this.renderHeaderOptions()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
renderHeaderOptions(){
|
||||
let result = null;
|
||||
|
||||
if(!this.props.config['maintenance-mode']){
|
||||
result = (<div>
|
||||
{this.renderAccessLinks()}
|
||||
<LanguageSelector {...this.getLanguageSelectorProps()} />
|
||||
</div>)
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
renderAccessLinks() {
|
||||
const {
|
||||
session,
|
||||
|
@ -8,7 +8,7 @@
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
|
||||
min-height: 40px;
|
||||
&__user-name {
|
||||
color: $primary-red;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user