add set property action in background
This commit is contained in:
parent
6083e70ea0
commit
22c34a0a6f
4 changed files with 36 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
export default {
|
||||
// Settings
|
||||
SETTING_SET_SETTINGS: 'setting.set.settings',
|
||||
SETTING_SET_PROPERTY: 'setting.set.property',
|
||||
};
|
||||
|
|
|
@ -10,4 +10,12 @@ const load = () => {
|
|||
});
|
||||
};
|
||||
|
||||
export { load };
|
||||
const setProperty = (name, value) => {
|
||||
return {
|
||||
type: actions.SETTING_SET_PROPERTY,
|
||||
name,
|
||||
value,
|
||||
};
|
||||
};
|
||||
|
||||
export { load, setProperty };
|
||||
|
|
Reference in a new issue