|
@@ -21,6 +21,7 @@ class AppSettingPage extends React.Component {
|
|
|
constructor(props) {
|
|
constructor(props) {
|
|
|
super(props);
|
|
super(props);
|
|
|
this.state = {
|
|
this.state = {
|
|
|
|
|
+ isLoading: true,
|
|
|
title: '',
|
|
title: '',
|
|
|
confidential: '',
|
|
confidential: '',
|
|
|
globalLang: '',
|
|
globalLang: '',
|
|
@@ -38,6 +39,7 @@ class AppSettingPage extends React.Component {
|
|
|
const appSettingParams = response.data.appSettingParams;
|
|
const appSettingParams = response.data.appSettingParams;
|
|
|
|
|
|
|
|
this.setState({
|
|
this.setState({
|
|
|
|
|
+ isLoading: false,
|
|
|
title: appSettingParams.title || '',
|
|
title: appSettingParams.title || '',
|
|
|
confidential: appSettingParams.confidential || '',
|
|
confidential: appSettingParams.confidential || '',
|
|
|
globalLang: appSettingParams.globalLang || 'en-US',
|
|
globalLang: appSettingParams.globalLang || 'en-US',
|
|
@@ -56,7 +58,7 @@ class AppSettingPage extends React.Component {
|
|
|
render() {
|
|
render() {
|
|
|
const { t } = this.props;
|
|
const { t } = this.props;
|
|
|
|
|
|
|
|
- return (
|
|
|
|
|
|
|
+ return !this.state.isLoading ? (
|
|
|
<Fragment>
|
|
<Fragment>
|
|
|
<div className="row">
|
|
<div className="row">
|
|
|
<div className="col-md-12">
|
|
<div className="col-md-12">
|
|
@@ -102,7 +104,7 @@ class AppSettingPage extends React.Component {
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</Fragment>
|
|
</Fragment>
|
|
|
- );
|
|
|
|
|
|
|
+ ) : null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|