Skip to content

Commit

Permalink
feat: ClipTool only settings. Disables OVERLAY and AUTONEXT function …
Browse files Browse the repository at this point in the history
…on clint (if more than one client is connected, only one should add overlay and control autonext)
  • Loading branch information
olzzon committed May 28, 2019
1 parent 0d85e42 commit 6dad196
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,13 @@ class App extends PureComponent {
type:'SET_TIMELEFT',
data: response.data,
});
response.data.timeLeft.map((item, index) => {
_this2.handleAutoNext.autoNext(item, index);
_this2.handleOverlay.handleOverlay(item, index);
_this2.handleOverlay.handleWipe(item, index);
});
if (!_this2.props.store.settings[0].disableOverlay) {
response.data.timeLeft.map((item, index) => {
_this2.handleAutoNext.autoNext(item, index);
_this2.handleOverlay.handleOverlay(item, index);
_this2.handleOverlay.handleWipe(item, index);
});
}
},
error(err) { console.error('Subscription error: ', err); },
});
Expand Down

0 comments on commit 6dad196

Please sign in to comment.