Skip to content

Commit

Permalink
fix: show CasparCG source select no matter whether Offtube Mode is se…
Browse files Browse the repository at this point in the history
…lected
  • Loading branch information
olzzon authored and olzzon committed Mar 20, 2020
1 parent eda8ff3 commit 696dfed
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions client/components/ChanStrip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,7 @@ class ChanStrip extends React.PureComponent<IChanStripProps & IChanStripInjectPr
)
}
parameters() {
if (this.props.selectedProtocol.includes("caspar")) {
return (
<CcgChannelInputSettings channelIndex={this.props.faderIndex} />
)
}
else {
if (this.props.offtubeMode) {
return (
<div className="parameters">
<div className="group-text">
Expand Down Expand Up @@ -420,6 +415,8 @@ class ChanStrip extends React.PureComponent<IChanStripProps & IChanStripInjectPr
</ul>
</div>
)
} else {
return null
}
}

Expand Down Expand Up @@ -455,9 +452,10 @@ class ChanStrip extends React.PureComponent<IChanStripProps & IChanStripInjectPr
}
</div>
<hr/>
{this.props.offtubeMode ?
{this.props.selectedProtocol.includes("caspar") ?
<CcgChannelInputSettings channelIndex={this.props.faderIndex} />
:
this.parameters()
: null
}
</div>
)
Expand Down

0 comments on commit 696dfed

Please sign in to comment.