From eaa2dfc72057002054d142383eed27612f79e263 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Wed, 2 Nov 2022 16:59:32 +0100 Subject: [PATCH] fix(ui) - show red dot for error --- frontend/app/components/Session_/Player/Controls/Controls.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/Session_/Player/Controls/Controls.js b/frontend/app/components/Session_/Player/Controls/Controls.js index 0a9b57fb3..3d5f096dc 100644 --- a/frontend/app/components/Session_/Player/Controls/Controls.js +++ b/frontend/app/components/Session_/Player/Controls/Controls.js @@ -78,6 +78,7 @@ function getStorageName(type) { fullscreenDisabled: state.messagesLoading, // logCount: state.logList.length, logRedCount: state.logRedCount, + showExceptions: state.exceptionsList.length > 0, resourceRedCount: state.resourceRedCount, fetchRedCount: state.fetchRedCount, showStack: state.stackList.length > 0, @@ -143,6 +144,7 @@ export default class Controls extends React.Component { // nextProps.inspectorMode !== this.props.inspectorMode || // nextProps.logCount !== this.props.logCount || nextProps.logRedCount !== this.props.logRedCount || + nextProps.showExceptions !== this.props.showExceptions || nextProps.resourceRedCount !== this.props.resourceRedCount || nextProps.fetchRedCount !== this.props.fetchRedCount || nextProps.showStack !== this.props.showStack || @@ -262,6 +264,7 @@ export default class Controls extends React.Component { speed, disabled, logRedCount, + showExceptions, resourceRedCount, showStack, stackRedCount, @@ -345,7 +348,7 @@ export default class Controls extends React.Component { label="CONSOLE" noIcon labelClassName="!text-base font-semibold" - hasErrors={logRedCount > 0} + hasErrors={logRedCount > 0 || showExceptions} containerClassName="mx-2" /> {!live && (