Skip to content

Commit

Permalink
add version field on Code
Browse files Browse the repository at this point in the history
  • Loading branch information
dehall committed Mar 21, 2024
1 parent f78aaf0 commit 343e1f2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/editor/Code.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ export class Code extends Component<Props> {
}
}

checkVersionKey() {
if(this.props.code.version) {
return (
<div>
System Version (Optional): <RIEInput className='editable-text' value={this.props.code.version} propName="version" change={this.props.onChange('version')} />
</div>
);
}else {
return (
<div>
System Version (Optional): <RIEInput className='editable-text' value="" propName="version" change={this.props.onChange('version')} />
</div>
);
}
}

render() {
let code = this.props.code;
let system = this.props.system;
Expand All @@ -41,6 +57,7 @@ export class Code extends Component<Props> {
Code: <RIEInput className='editable-text' value={code.code} propName="code" change={this.props.onChange('code')} />
<br />
Display: <RIEInput className='editable-text' value={code.display} propName="display" change={this.props.onChange('display')} />
{this.checkVersionKey()}
{this.checkValueSetKey()}
</div>
);
Expand Down

0 comments on commit 343e1f2

Please sign in to comment.