mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-29 10:28:53 +03:00
Fix strings
This commit is contained in:
parent
90bef94500
commit
a6172d1966
5 changed files with 9 additions and 9 deletions
|
@ -297,7 +297,7 @@ export const setRules = rules => async (dispatch) => {
|
|||
.replace(/^\n/g, '')
|
||||
.replace(/\n\s*\n/g, '\n');
|
||||
await apiClient.setRules(replacedLineEndings);
|
||||
dispatch(addSuccessToast('Custom rules saved'));
|
||||
dispatch(addSuccessToast('Updated the custom filtering rules'));
|
||||
dispatch(setRulesSuccess());
|
||||
} catch (error) {
|
||||
dispatch(addErrorToast({ error }));
|
||||
|
@ -456,7 +456,7 @@ export const setUpstream = url => async (dispatch) => {
|
|||
dispatch(setUpstreamRequest());
|
||||
try {
|
||||
await apiClient.setUpstream(url);
|
||||
dispatch(addSuccessToast('Upstream DNS servers saved'));
|
||||
dispatch(addSuccessToast('Updated the upstream DNS servers'));
|
||||
dispatch(setUpstreamSuccess());
|
||||
} catch (error) {
|
||||
dispatch(addErrorToast({ error }));
|
||||
|
|
|
@ -15,7 +15,7 @@ const Clients = props => (
|
|||
Header: 'IP',
|
||||
accessor: 'ip',
|
||||
}, {
|
||||
Header: 'Request count',
|
||||
Header: 'Requests count',
|
||||
accessor: 'count',
|
||||
}]}
|
||||
showPagination={false}
|
||||
|
|
|
@ -15,7 +15,7 @@ const QueriedDomains = props => (
|
|||
Header: 'IP',
|
||||
accessor: 'ip',
|
||||
}, {
|
||||
Header: 'Request count',
|
||||
Header: 'Requests count',
|
||||
accessor: 'count',
|
||||
}]}
|
||||
showPagination={false}
|
||||
|
|
|
@ -39,11 +39,11 @@ class Filters extends Component {
|
|||
width: 90,
|
||||
className: 'text-center',
|
||||
}, {
|
||||
Header: 'Filter name',
|
||||
Header: 'Name',
|
||||
accessor: 'name',
|
||||
Cell: ({ value }) => (<div className="logs__row logs__row--overflow"><span className="logs__text" title={value}>{value}</span></div>),
|
||||
}, {
|
||||
Header: 'Host file URL',
|
||||
Header: 'Filter URL',
|
||||
accessor: 'url',
|
||||
Cell: ({ value }) => (<div className="logs__row logs__row--overflow"><a href={value} target='_blank' rel='noopener noreferrer' className="link logs__text">{value}</a></div>),
|
||||
}, {
|
||||
|
@ -51,7 +51,7 @@ class Filters extends Component {
|
|||
accessor: 'rulesCount',
|
||||
className: 'text-center',
|
||||
}, {
|
||||
Header: 'Last time update',
|
||||
Header: 'Last time updated',
|
||||
accessor: 'lastUpdated',
|
||||
className: 'text-center',
|
||||
}, {
|
||||
|
|
|
@ -51,10 +51,10 @@ class Logs extends Component {
|
|||
|
||||
if (userRules.match(preparedBlockingRule)) {
|
||||
this.props.setRules(userRules.replace(`${blockingRule}`, ''));
|
||||
this.props.addSuccessToast(`Removing rule from custom list: ${blockingRule}`);
|
||||
this.props.addSuccessToast(`Rule removed from the custom filtering rules: ${blockingRule}`);
|
||||
} else if (!userRules.match(preparedUnblockingRule)) {
|
||||
this.props.setRules(`${userRules}${lineEnding}${unblockingRule}\n`);
|
||||
this.props.addSuccessToast(`Adding rule to custom list: ${unblockingRule}`);
|
||||
this.props.addSuccessToast(`Rule added to the custom filtering rules: ${unblockingRule}`);
|
||||
}
|
||||
|
||||
this.props.getFilteringStatus();
|
||||
|
|
Loading…
Reference in a new issue