Merge pull request #326 from openreplay/dev

v1.5.0: UI Fixes
This commit is contained in:
Mehdi Osman 2022-02-15 14:13:41 +01:00 committed by GitHub
commit 310a860b28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,7 @@ import { setTimelinePointer } from 'Duck/sessions';
@connectPlayer(state => ({
list: state.fetchList,
livePlay: state.livePlay,
}))
@connect(state => ({
timelinePointer: state.getIn(['sessions', 'timelinePointer']),
@ -36,13 +37,17 @@ export default class Fetch extends React.PureComponent {
}
setCurrent = (item, index) => {
pause()
jump(item.time)
if (!this.props.livePlay) {
pause();
jump(item.time)
}
this.setState({ current: item, currentIndex: index });
}
onRowClick = (item, index) => {
pause()
if (!this.props.livePlay) {
pause();
}
this.setState({ current: item, currentIndex: index, showFetchDetails: true });
this.props.setTimelinePointer(null);
}