Ensure that Dashboard graphs should be refreshed on changing the node from the browser tree. Fixes #7402

This commit is contained in:
Akshay Joshi
2022-05-23 13:26:40 +05:30
parent 11cfea3860
commit 50b1ba5c80
2 changed files with 4 additions and 2 deletions

View File

@@ -793,6 +793,7 @@ export default function Dashboard({
<Box className={classes.emptyPanel}>
{!_.isUndefined(preferences) && preferences.show_graphs && (
<Graphs
key={sid + did}
preferences={preferences}
sid={sid}
did={did}
@@ -802,9 +803,9 @@ export default function Dashboard({
<Box className={classes.panelContent}>
<Box
className={classes.cardHeader}
title={gettext('Server activity')}
title={props.dbConnected ? gettext('Database activity') : gettext('Server activity')}
>
{gettext('Server activity')}{' '}
{props.dbConnected ? gettext('Database activity') : gettext('Server activity')}{' '}
</Box>
<Box height="100%" display="flex" flexDirection="column">
<Box>