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 * as Utils from 'utils/utils.jsx';
|
||||
|
||||
import {getConfig} from 'utils/async_client.jsx';
|
||||
|
||||
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
|
||||
|
||||
export default class ReloadConfigButton extends React.Component {
|
||||
@@ -30,6 +32,7 @@ export default class ReloadConfigButton extends React.Component {
|
||||
|
||||
Client.reloadConfig(
|
||||
() => {
|
||||
getConfig();
|
||||
this.setState({
|
||||
loading: false
|
||||
});
|
||||
|
||||
Ссылка в новой задаче
Block a user