mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-02 14:10:29 +03:00
Show toast on failed request
This commit is contained in:
parent
9258fada47
commit
828bb40084
11 changed files with 230 additions and 32 deletions
client/src/components/Dashboard
|
@ -26,7 +26,6 @@ class Dashboard extends Component {
|
|||
dashboard.processingStatsHistory ||
|
||||
dashboard.processingTopStats;
|
||||
|
||||
const disableButton = <button type="button" className="btn btn-outline-secondary btn-sm mr-2" onClick={() => this.props.disableDns()}>Disable DNS</button>;
|
||||
const refreshFullButton = <button type="button" className="btn btn-outline-primary btn-sm" onClick={() => this.componentDidMount()}>Refresh statistics</button>;
|
||||
const refreshButton = <button type="button" className="btn btn-outline-primary btn-sm card-refresh" onClick={() => this.componentDidMount()}></button>;
|
||||
|
||||
|
@ -34,7 +33,6 @@ class Dashboard extends Component {
|
|||
<Fragment>
|
||||
<PageTitle title="Dashboard">
|
||||
<div className="page-title__actions">
|
||||
{disableButton}
|
||||
{refreshFullButton}
|
||||
</div>
|
||||
</PageTitle>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue