maintain (client): maintain project dependencies and relevant upgrade

This commit is contained in:
Mickael Kerjean
2020-01-06 21:34:50 +11:00
parent b3124b95ec
commit 3b3a03da0d
10 changed files with 30 additions and 30 deletions

View File

@ -11,7 +11,7 @@ export class ConfigPage extends React.Component {
};
}
componentWillMount(){
componentDidMount(){
Config.all().then((c) => {
delete c.constant; // The constant key contains read only global variable that are
// application wide truth => not editable from the admin area

View File

@ -15,7 +15,7 @@ export class DashboardPage extends React.Component {
};
}
componentWillMount(){
componentDidMount(){
Promise.all([
Backend.all(),
Config.all()

View File

@ -16,7 +16,7 @@ export class LogPage extends React.Component {
};
}
componentWillMount(){
componentDidMount(){
Config.all().then((config) => {
this.setState({
form: {"":{"params":config["log"]}},

View File

@ -20,7 +20,7 @@ export class PluginPage extends React.Component {
};
}
componentWillMount(){
componentDidMount(){
Plugin.all().then((list) => this.setState({plugins: list}));
}