mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-02 11:57:04 +08:00
maintain (client): maintain project dependencies and relevant upgrade
This commit is contained in:
@ -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
|
||||
|
||||
@ -15,7 +15,7 @@ export class DashboardPage extends React.Component {
|
||||
};
|
||||
}
|
||||
|
||||
componentWillMount(){
|
||||
componentDidMount(){
|
||||
Promise.all([
|
||||
Backend.all(),
|
||||
Config.all()
|
||||
|
||||
@ -16,7 +16,7 @@ export class LogPage extends React.Component {
|
||||
};
|
||||
}
|
||||
|
||||
componentWillMount(){
|
||||
componentDidMount(){
|
||||
Config.all().then((config) => {
|
||||
this.setState({
|
||||
form: {"":{"params":config["log"]}},
|
||||
|
||||
@ -20,7 +20,7 @@ export class PluginPage extends React.Component {
|
||||
};
|
||||
}
|
||||
|
||||
componentWillMount(){
|
||||
componentDidMount(){
|
||||
Plugin.all().then((list) => this.setState({plugins: list}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user