Skip to content

Commit

Permalink
Merge pull request #34 from kdvalin/fix/setting-values
Browse files Browse the repository at this point in the history
Default settings for lessons
  • Loading branch information
kdvalin authored Mar 26, 2021
2 parents 35141d4 + f38517c commit 9c5b620
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/pages/courses.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@ export const CourseEdit = (props) => (
<LongTextInput source="prompt" />
<LongTextInput source="code" />
<TextInput source="settings.skyColor" type="color" label="Sky Color" defaultValue="#ffffff" />
<BooleanInput source="settings.showFloor" label="Show Floor" />
<TextInput source="settings.floorColor" type="color" label="Floor Color" defaultValue="#000000" />
<BooleanInput source="settings.showCoordHelper" label="Show Coordinate Helper" />
<BooleanInput source="settings.showFloor" label="Show Floor" defaultValue={true} />
<TextInput source="settings.floorColor" type="color" label="Floor Color" defaultValue="#272727" />
<BooleanInput source="settings.showCoordHelper" label="Show Coordinate Helper" defaultValue={false} />
<TextInput source="settings.camPositon" label="Camera Position" />
<NumberInput source="settings.camConfig" label="Camera Config" />
<BooleanInput source="settings.canFly" label="Can Fly"/>
<BooleanInput source="settings.viewOnly" label="View Only" />
<BooleanInput source="settings.defaultLight" label="Default Light" />
<BooleanInput source="settings.lightIndicator" label="Show Light Indicators" />
<BooleanInput source="settings.shadow" label="Cast Shadows" />
<BooleanInput source="settings.canFly" label="Can Fly" defaultValue={false} />
<BooleanInput source="settings.viewOnly" label="View Only" defaultValue={false} />
<BooleanInput source="settings.defaultLight" label="Default Light" defaultValue={true} />
<BooleanInput source="settings.lightIndicator" label="Show Light Indicators" defaultValue={false} />
<BooleanInput source="settings.shadow" label="Cast Shadows" defaultValue={false} />
</SimpleFormIterator>
</ArrayInput>
</FormTab>
Expand All @@ -133,20 +133,20 @@ export const CourseCreate = (props) => (
<ArrayInput source="lessons">
<SimpleFormIterator>
<br />
<TextInput source="name"/>
<LongTextInput source="prompt" />
<LongTextInput source="code" />
<TextInput source="name" validate={required()} />
<LongTextInput source="prompt" validate={required()} />
<LongTextInput source="code" validate={required()} />
<TextInput source="settings.skyColor" type="color" label="Sky Color" defaultValue="#ffffff" />
<BooleanInput source="settings.showFloor" label="Show Floor" />
<TextInput source="settings.floorColor" type="color" label="Floor Color" defaultValue="#000000" />
<BooleanInput source="settings.showCoordHelper" label="Show Coordinate Helper" />
<BooleanInput source="settings.showFloor" label="Show Floor" defaultValue={true} />
<TextInput source="settings.floorColor" type="color" label="Floor Color" defaultValue="#272727" />
<BooleanInput source="settings.showCoordHelper" label="Show Coordinate Helper" defaultValue={false} />
<TextInput source="settings.camPositon" label="Camera Position" />
<NumberInput source="settings.camConfig" label="Camera Config" />
<BooleanInput source="settings.canFly" label="Can Fly"/>
<BooleanInput source="settings.viewOnly" label="View Only" />
<BooleanInput source="settings.defaultLight" label="Default Light" />
<BooleanInput source="settings.lightIndicator" label="Show Light Indicators" />
<BooleanInput source="settings.shadow" label="Cast Shadows" />
<BooleanInput source="settings.canFly" label="Can Fly" defaultValue={false} />
<BooleanInput source="settings.viewOnly" label="View Only" defaultValue={false} />
<BooleanInput source="settings.defaultLight" label="Default Light" defaultValue={true} />
<BooleanInput source="settings.lightIndicator" label="Show Light Indicators" defaultValue={false} />
<BooleanInput source="settings.shadow" label="Cast Shadows" defaultValue={false} />
</SimpleFormIterator>
</ArrayInput>
</FormTab>
Expand Down

0 comments on commit 9c5b620

Please sign in to comment.