- client: fix id and method name

This commit is contained in:
Ildar Kamalov 2019-09-04 18:06:09 +03:00 committed by Simon Zolin
parent a753ae86cc
commit 0e6c795c5b
3 changed files with 6 additions and 6 deletions

View file

@ -373,7 +373,7 @@ class Logs extends Component {
{enabled && isDataReady && this.renderLogs(queryLogs.logs)}
{!enabled && isDataReady && (
<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
</Trans>
</div>

View file

@ -12,7 +12,7 @@ class LogsConfig extends Component {
this.props.setLogsConfig(values);
}, DEBOUNCE_TIMEOUT);
handleLogsClear = () => {
handleClear = () => {
const { t, clearLogs } = this.props;
// eslint-disable-next-line no-alert
if (window.confirm(t('query_log_confirm_clear'))) {
@ -29,7 +29,7 @@ class LogsConfig extends Component {
<Card
title={t('query_log_configuration')}
bodyType="card-body box-body--settings"
id="logs_config"
id="logs-config"
>
<div className="form">
<Form
@ -45,7 +45,7 @@ class LogsConfig extends Component {
<button
type="button"
className="btn btn-outline-secondary btn-sm"
onClick={this.handleLogsClear}
onClick={this.handleClear}
disabled={processingClear}
>
<Trans>query_log_clear</Trans>

View file

@ -12,7 +12,7 @@ class StatsConfig extends Component {
this.props.setStatsConfig(values);
}, DEBOUNCE_TIMEOUT);
handleStatsReset = () => {
handleReset = () => {
const { t, resetStats } = this.props;
// eslint-disable-next-line no-alert
if (window.confirm(t('statistics_clear_confirm'))) {
@ -40,7 +40,7 @@ class StatsConfig extends Component {
<button
type="button"
className="btn btn-outline-secondary btn-sm"
onClick={this.handleStatsReset}
onClick={this.handleReset}
disabled={processingReset}
>
<Trans>statistics_clear</Trans>