mirror of
https://git.vectorsigma.ru/public/AdGuardHome.git
synced 2026-07-28 20:08:49 +00:00
review fix
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { createAction } from 'redux-actions';
|
||||
import i18next from 'i18next';
|
||||
|
||||
import intl from 'panel/common/intl';
|
||||
import { apiClient } from '../api/Api';
|
||||
import { addErrorToast, addSuccessToast } from './toasts';
|
||||
|
||||
@@ -38,7 +39,7 @@ export const setAccessList = (config: any) => async (dispatch: any) => {
|
||||
|
||||
await apiClient.setAccessList(values);
|
||||
dispatch(setAccessListSuccess());
|
||||
dispatch(addSuccessToast('access_settings_saved'));
|
||||
dispatch(addSuccessToast(intl.getMessage('settings_notify_changes_saved')));
|
||||
} catch (error) {
|
||||
dispatch(addErrorToast({ error }));
|
||||
dispatch(setAccessListFailure());
|
||||
|
||||
@@ -137,7 +137,7 @@ export const Form = ({ initialValues, onSubmit }: CacheFormProps) => {
|
||||
const value = e.target.value === '' ? 0 : Number(e.target.value);
|
||||
field.onChange(value);
|
||||
}}
|
||||
value={field.value === 0 ? '' : String(field.value)}
|
||||
value={String(field.value)}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
padding: 16px;
|
||||
font-weight: var(--weight-regular);
|
||||
color: var(--default-main-text);
|
||||
background-color: var(--default-page-background);
|
||||
background-color: var(--page-background-additional);
|
||||
border-radius: 8px;
|
||||
box-shadow:
|
||||
2px 2px 4px 0 rgba(0, 0, 0, 0.1),
|
||||
|
||||
Reference in New Issue
Block a user