mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-01 13:41:07 +03:00
parent
0c3c8dba9b
commit
d7596fe860
3 changed files with 65 additions and 20 deletions
client/src/components/Dashboard
|
@ -26,7 +26,7 @@ class Dashboard extends Component {
|
|||
getToggleFilteringButton = () => {
|
||||
const { isFilteringEnabled } = this.props.dashboard;
|
||||
const buttonText = isFilteringEnabled ? 'Disable' : 'Enable';
|
||||
const buttonClass = isFilteringEnabled ? 'btn-outline-secondary' : 'btn-outline-success';
|
||||
const buttonClass = isFilteringEnabled ? 'btn-gray' : 'btn-success';
|
||||
|
||||
return (
|
||||
<button type="button" className={`btn btn-sm mr-2 ${buttonClass}`} onClick={() => this.props.toggleFiltering(isFilteringEnabled)}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue