default property values
This commit is contained in:
parent
f4499b840c
commit
fe48dce1c9
5 changed files with 24 additions and 12 deletions
src/shared/settings
|
@ -1,3 +1,5 @@
|
|||
import * as properties from './properties';
|
||||
|
||||
const operationFromFormName = (name) => {
|
||||
let [type, argStr] = name.split('?');
|
||||
let args = {};
|
||||
|
@ -81,11 +83,13 @@ const formFromValue = (value, allowedOps) => {
|
|||
}
|
||||
}
|
||||
|
||||
let formProperties = Object.assign({}, properties.defaults, value.properties);
|
||||
|
||||
return {
|
||||
keymaps,
|
||||
search,
|
||||
blacklist: value.blacklist,
|
||||
properties: value.properties,
|
||||
properties: formProperties,
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue