Rename key to path in actions and reducers for settings (#6105)
This commit is contained in:
committed by
Eugen Rochko
parent
ce854ed506
commit
3ba7cde38d
@ -15,9 +15,9 @@ export {
|
||||
register,
|
||||
};
|
||||
|
||||
export function changeAlerts(key, value) {
|
||||
export function changeAlerts(path, value) {
|
||||
return dispatch => {
|
||||
dispatch(setAlerts(key, value));
|
||||
dispatch(setAlerts(path, value));
|
||||
dispatch(saveSettings());
|
||||
};
|
||||
}
|
||||
|
@ -23,11 +23,11 @@ export function clearSubscription () {
|
||||
};
|
||||
}
|
||||
|
||||
export function setAlerts (key, value) {
|
||||
export function setAlerts (path, value) {
|
||||
return dispatch => {
|
||||
dispatch({
|
||||
type: SET_ALERTS,
|
||||
key,
|
||||
path,
|
||||
value,
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user