Store the pausedAt state in the app URL.

This commit is contained in:
Filip Barl
2017-11-10 16:46:56 +01:00
parent 893537ca5c
commit 4bd7fc759a
11 changed files with 65 additions and 40 deletions
@@ -5,7 +5,6 @@ import { Map as makeMap } from 'immutable';
import MatchedText from '../matched-text';
import ShowMore from '../show-more';
import { formatDataType } from '../../utils/string-utils';
import { getSerializedTimeTravelTimestamp } from '../../utils/web-api-utils';
class NodeDetailsInfo extends React.Component {
@@ -68,7 +67,7 @@ class NodeDetailsInfo extends React.Component {
function mapStateToProps(state) {
return {
timestamp: getSerializedTimeTravelTimestamp(state),
timestamp: state.get('pausedAt'),
};
}
@@ -11,7 +11,6 @@ import NodeDetailsTableRow from './node-details-table-row';
import NodeDetailsTableHeaders from './node-details-table-headers';
import { ipToPaddedString } from '../../utils/string-utils';
import { moveElement, insertElement } from '../../utils/array-utils';
import { getSerializedTimeTravelTimestamp } from '../../utils/web-api-utils';
import {
isIP, isNumber, defaultSortDesc, getTableColumnsStyles
} from '../../utils/node-details-utils';
@@ -305,7 +304,7 @@ NodeDetailsTable.defaultProps = {
function mapStateToProps(state) {
return {
timestamp: getSerializedTimeTravelTimestamp(state),
timestamp: state.get('pausedAt'),
};
}