Skip to content

Commit

Permalink
feat: ChannelTypes - preparing settings for numberOfChannelTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Jun 27, 2019
1 parent 114538d commit ef1a9ba
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions src/components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,26 @@ class Settings extends React.PureComponent<IAppProps & Store, IState> {
location.reload();
}

renderChannelTypeSettings = () => {
return (
<div className="settings-show-channel-selection">
<div className="settings-header">
NUMBER OF CHANNELS:
</div>
<label className="settings-input-field">
NUMBER OF "channelTypeName" :
<input name="numberOfChannels" type="text" value={this.state.settings.numberOfChannelsInType[0]} onChange={this.handleChange} />
</label>
</div>
)
}

renderShowChannelsSelection = () => {
return (
<div className="settings-show-channel-selection">
<div className="settings-header">
SHOW/HIDE FADERS:
</div>
<button className="settings-channels-button"
onClick=
{() => {
Expand Down Expand Up @@ -248,11 +265,6 @@ class Settings extends React.PureComponent<IAppProps & Store, IState> {
<input name="localOscPort" type="text" value={this.state.settings.localOscPort} onChange={this.handleChange} />
</label>
<br/>
<label className="settings-input-field">
NUMBER OF CHANNELS :
<input name="numberOfChannels" type="text" value={this.state.settings.numberOfChannelsInType[0]} onChange={this.handleChange} />
</label>
<br/>
<label className="settings-input-field">
FADE TIME IN ms :
<input name="fadeTime" type="text" value={this.state.settings.fadeTime} onChange={this.handleChange} />
Expand All @@ -278,6 +290,8 @@ class Settings extends React.PureComponent<IAppProps & Store, IState> {
/>
</label>
<br/>
{this.renderChannelTypeSettings()}
<br/>
{this.renderShowChannelsSelection()}
<br/>
{this.renderRemoteControllerSettings()}
Expand Down

0 comments on commit ef1a9ba

Please sign in to comment.