+ { //bottomBlock === OVERVIEW &&
+
+ }
{ bottomBlock === CONSOLE &&
}
diff --git a/frontend/app/components/Session_/PlayerBlock.js b/frontend/app/components/Session_/PlayerBlock.js
index e6bcbaa33..487809649 100644
--- a/frontend/app/components/Session_/PlayerBlock.js
+++ b/frontend/app/components/Session_/PlayerBlock.js
@@ -3,7 +3,7 @@ import cn from "classnames";
import { connect } from 'react-redux';
import { } from 'Player';
import {
- NONE,
+ NONE, OVERVIEW,
} from 'Duck/components/player';
import Player from './Player';
import SubHeader from './Subheader';
@@ -37,8 +37,9 @@ export default class PlayerBlock extends React.PureComponent {
/>}
diff --git a/frontend/app/duck/components/player.js b/frontend/app/duck/components/player.js
index 1a34bcd95..cf6263bf4 100644
--- a/frontend/app/duck/components/player.js
+++ b/frontend/app/duck/components/player.js
@@ -12,6 +12,7 @@ export const FETCH = 8;
export const EXCEPTIONS = 9;
export const LONGTASKS = 10;
export const INSPECTOR = 11;
+export const OVERVIEW = 12;
const TOGGLE_FULLSCREEN = 'player/TOGGLE_FS';
const TOGGLE_BOTTOM_BLOCK = 'player/SET_BOTTOM_BLOCK';
diff --git a/frontend/app/utils.ts b/frontend/app/utils.ts
index 9765d69c3..53d7375ad 100644
--- a/frontend/app/utils.ts
+++ b/frontend/app/utils.ts
@@ -324,8 +324,12 @@ export const fetchErrorCheck = async (response: any) => {
export const cleanSessionFilters = (data: any) => {
const { filters, ...rest } = data;
const _fitlers = filters.filter((f: any) => {
- if (f.operator === 'isAny' || f.operator === 'onAny') { return true } // ignore filter with isAny/onAny operator
- if (Array.isArray(f.filters) && f.filters.length > 0) { return true } // ignore subfilters
+ if (f.operator === 'isAny' || f.operator === 'onAny') {
+ return true;
+ } // ignore filter with isAny/onAny operator
+ if (Array.isArray(f.filters) && f.filters.length > 0) {
+ return true;
+ } // ignore subfilters
return f.value !== '' && Array.isArray(f.value) && f.value.length > 0;
});
@@ -343,3 +347,8 @@ export const setSessionFilter = (filter: any) => {
export const compareJsonObjects = (obj1: any, obj2: any) => {
return JSON.stringify(obj1) === JSON.stringify(obj2);
};
+
+export function getTimelinePosition(value: any, scale: any) {
+ const pos = value * scale;
+ return pos > 100 ? 100 : pos;
+}