Fix strings

This commit is contained in:
Andrey Meshkov 2018-10-10 17:32:36 +03:00
parent 90bef94500
commit a6172d1966
5 changed files with 9 additions and 9 deletions

View file

@ -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 }));

View file

@ -15,7 +15,7 @@ const Clients = props => (
Header: 'IP',
accessor: 'ip',
}, {
Header: 'Request count',
Header: 'Requests count',
accessor: 'count',
}]}
showPagination={false}

View file

@ -15,7 +15,7 @@ const QueriedDomains = props => (
Header: 'IP',
accessor: 'ip',
}, {
Header: 'Request count',
Header: 'Requests count',
accessor: 'count',
}]}
showPagination={false}

View file

@ -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',
}, {

View file

@ -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();