Fixed the component and system settings treema, clearing out defaults for properties not being edited.

This commit is contained in:
Scott Erickson 2014-08-26 15:40:51 -07:00
parent ab669739a6
commit 162aa7633e
2 changed files with 2 additions and 0 deletions

View file

@ -49,6 +49,7 @@ module.exports = class LevelComponentEditView extends CocoView
schema = _.cloneDeep LevelComponent.schema
schema.properties = _.pick schema.properties, (value, key) => key in @editableSettings
schema.required = _.intersection schema.required, @editableSettings
schema.default = _.pick schema.default, (value, key) => key in @editableSettings
treemaOptions =
supermodel: @supermodel

View file

@ -43,6 +43,7 @@ module.exports = class LevelSystemEditView extends CocoView
schema = _.cloneDeep LevelSystem.schema
schema.properties = _.pick schema.properties, (value, key) => key in @editableSettings
schema.required = _.intersection schema.required, @editableSettings
schema.default = _.pick schema.default, (value, key) => key in @editableSettings
treemaOptions =
supermodel: @supermodel