PLT-3453 Reloading the configuration in the system console should immediately show config changes (#3446)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
b418d78517
Коммит
fccacbbf96
@@ -6,6 +6,8 @@ import React from 'react';
|
|||||||
import Client from 'utils/web_client.jsx';
|
import Client from 'utils/web_client.jsx';
|
||||||
import * as Utils from 'utils/utils.jsx';
|
import * as Utils from 'utils/utils.jsx';
|
||||||
|
|
||||||
|
import {getConfig} from 'utils/async_client.jsx';
|
||||||
|
|
||||||
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
|
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
|
||||||
|
|
||||||
export default class ReloadConfigButton extends React.Component {
|
export default class ReloadConfigButton extends React.Component {
|
||||||
@@ -30,6 +32,7 @@ export default class ReloadConfigButton extends React.Component {
|
|||||||
|
|
||||||
Client.reloadConfig(
|
Client.reloadConfig(
|
||||||
() => {
|
() => {
|
||||||
|
getConfig();
|
||||||
this.setState({
|
this.setState({
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user