mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 19:31:45 +03:00
- 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 && (
|
||||
<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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user