You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/app/utils/model/writable.js

12 lines
227 B

export default function(model, props, attr = {}) {
model.eachAttribute(function(item) {
attr[item] = {
...attr[item],
...{
serialize: props.indexOf(item) !== -1,
},
};
});
return attr;
}