- client: fix id and method name
This commit is contained in:
parent
a753ae86cc
commit
0e6c795c5b
|
@ -373,7 +373,7 @@ class Logs extends Component {
|
||||||
{enabled && isDataReady && this.renderLogs(queryLogs.logs)}
|
{enabled && isDataReady && this.renderLogs(queryLogs.logs)}
|
||||||
{!enabled && isDataReady && (
|
{!enabled && isDataReady && (
|
||||||
<div className="lead text-center py-6">
|
<div className="lead text-center py-6">
|
||||||
<Trans components={[<Link to="/settings#logs_config" key="0">link</Link>]}>
|
<Trans components={[<Link to="/settings#logs-config" key="0">link</Link>]}>
|
||||||
query_log_disabled
|
query_log_disabled
|
||||||
</Trans>
|
</Trans>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,7 +12,7 @@ class LogsConfig extends Component {
|
||||||
this.props.setLogsConfig(values);
|
this.props.setLogsConfig(values);
|
||||||
}, DEBOUNCE_TIMEOUT);
|
}, DEBOUNCE_TIMEOUT);
|
||||||
|
|
||||||
handleLogsClear = () => {
|
handleClear = () => {
|
||||||
const { t, clearLogs } = this.props;
|
const { t, clearLogs } = this.props;
|
||||||
// eslint-disable-next-line no-alert
|
// eslint-disable-next-line no-alert
|
||||||
if (window.confirm(t('query_log_confirm_clear'))) {
|
if (window.confirm(t('query_log_confirm_clear'))) {
|
||||||
|
@ -29,7 +29,7 @@ class LogsConfig extends Component {
|
||||||
<Card
|
<Card
|
||||||
title={t('query_log_configuration')}
|
title={t('query_log_configuration')}
|
||||||
bodyType="card-body box-body--settings"
|
bodyType="card-body box-body--settings"
|
||||||
id="logs_config"
|
id="logs-config"
|
||||||
>
|
>
|
||||||
<div className="form">
|
<div className="form">
|
||||||
<Form
|
<Form
|
||||||
|
@ -45,7 +45,7 @@ class LogsConfig extends Component {
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn btn-outline-secondary btn-sm"
|
className="btn btn-outline-secondary btn-sm"
|
||||||
onClick={this.handleLogsClear}
|
onClick={this.handleClear}
|
||||||
disabled={processingClear}
|
disabled={processingClear}
|
||||||
>
|
>
|
||||||
<Trans>query_log_clear</Trans>
|
<Trans>query_log_clear</Trans>
|
||||||
|
|
|
@ -12,7 +12,7 @@ class StatsConfig extends Component {
|
||||||
this.props.setStatsConfig(values);
|
this.props.setStatsConfig(values);
|
||||||
}, DEBOUNCE_TIMEOUT);
|
}, DEBOUNCE_TIMEOUT);
|
||||||
|
|
||||||
handleStatsReset = () => {
|
handleReset = () => {
|
||||||
const { t, resetStats } = this.props;
|
const { t, resetStats } = this.props;
|
||||||
// eslint-disable-next-line no-alert
|
// eslint-disable-next-line no-alert
|
||||||
if (window.confirm(t('statistics_clear_confirm'))) {
|
if (window.confirm(t('statistics_clear_confirm'))) {
|
||||||
|
@ -40,7 +40,7 @@ class StatsConfig extends Component {
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn btn-outline-secondary btn-sm"
|
className="btn btn-outline-secondary btn-sm"
|
||||||
onClick={this.handleStatsReset}
|
onClick={this.handleReset}
|
||||||
disabled={processingReset}
|
disabled={processingReset}
|
||||||
>
|
>
|
||||||
<Trans>statistics_clear</Trans>
|
<Trans>statistics_clear</Trans>
|
||||||
|
|
Loading…
Reference in New Issue