Skip to content

Commit

Permalink
fix: show storage with settings disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Nov 25, 2020
1 parent 14c4d71 commit a7563a6
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions client/components/Channels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ class Channels extends React.Component<IChannelsInjectProps & Store> {
</div>
)}
{this.props.settings.showChanStripFull >= 0 ? (
<ChanStripFull
faderIndex={this.props.settings.showChanStripFull}
/>
<ChanStripFull
faderIndex={this.props.settings.showChanStripFull}
/>
) : (
<div></div>
)}
Expand Down Expand Up @@ -285,18 +285,16 @@ class Channels extends React.Component<IChannelsInjectProps & Store> {
SETTINGS
</button>
)}
{window.location.search.includes(
'settings=0'
) ? null : (
<button
className="button half channels-show-storage-button"
onClick={() => {
this.handleShowStorage()
}}
>
STORAGE
</button>
)}

<button
className="button half channels-show-storage-button"
onClick={() => {
this.handleShowStorage()
}}
>
STORAGE
</button>

{window.location.search.includes(
'settings=0'
) ? null : (
Expand Down Expand Up @@ -346,7 +344,9 @@ const mapStateToProps = (state: any): IChannelsInjectProps => {
faders: state.faders[0].fader,
customPages: state.settings[0].customPages,
settings: state.settings[0],
mixersOnline: state.settings[0].mixers.map((m: IMixerSettings) => m.mixerOnline).reduce((a: boolean, b: boolean) => a && b)
mixersOnline: state.settings[0].mixers
.map((m: IMixerSettings) => m.mixerOnline)
.reduce((a: boolean, b: boolean) => a && b),
}
}

Expand Down

0 comments on commit a7563a6

Please sign in to comment.