diff --git a/frontend/app/Router.js b/frontend/app/Router.js index 83ef198f4..0082dbe09 100644 --- a/frontend/app/Router.js +++ b/frontend/app/Router.js @@ -189,7 +189,7 @@ class Router extends React.Component { destinationPath !== routes.login() && destinationPath !== '/' ) { - this.props.history.push(destinationPath); + history.push(destinationPath + window.location.search); } if (!prevProps.isLoggedIn && this.props.isLoggedIn) { @@ -232,9 +232,6 @@ class Router extends React.Component { - } /> - diff --git a/frontend/app/components/Session/Player/LivePlayer/LiveControls.tsx b/frontend/app/components/Session/Player/LivePlayer/LiveControls.tsx index fa32bba1c..38393d947 100644 --- a/frontend/app/components/Session/Player/LivePlayer/LiveControls.tsx +++ b/frontend/app/components/Session/Player/LivePlayer/LiveControls.tsx @@ -10,7 +10,7 @@ import { import { PlayerContext, ILivePlayerContext } from 'App/components/Session/playerContext'; import { observer } from 'mobx-react-lite'; import { fetchSessions } from 'Duck/liveSearch'; - +import { useLocation } from "react-router-dom"; import AssistDuration from './AssistDuration'; import Timeline from './Timeline'; import ControlButton from 'Components/Session_/Player/Controls/ControlButton'; @@ -20,6 +20,8 @@ import styles from 'Components/Session_/Player/Controls/controls.module.css'; function Controls(props: any) { // @ts-ignore ?? TODO const { player, store } = React.useContext(PlayerContext); + const [noMulti, setNoMulti] = React.useState(false); + const { search } = useLocation(); const { jumpToLive } = player; const { @@ -58,6 +60,12 @@ function Controls(props: any) { if (totalAssistSessions === 0) { fetchAssistSessions(); } + const queryParams = new URLSearchParams(search); + if ( + (queryParams.has('noFooter') && queryParams.get('noFooter') === 'true') + ) { + setNoMulti(true); + } return () => { document.removeEventListener('keydown', onKeyDown.bind(this)); }; @@ -73,8 +81,6 @@ function Controls(props: any) { player.jumpInterval(-SKIP_INTERVALS[skipInterval]); }; - - const toggleBottomTools = (blockName: number) => { toggleBottomBlock(blockName); }; @@ -82,6 +88,7 @@ function Controls(props: any) { return (
+ {!noMulti ?
{!closedLive && ( @@ -112,6 +119,7 @@ function Controls(props: any) { />
+ : null}
); }