mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1 Fixed the issue where db connection was getting disconnected for dashboard, if network is slow.
2 Fixed publication collection node properties issue which was missed during react node porting. 3 Removed unwanted variable from theme style sheet.
This commit is contained in:
committed by
Akshay Joshi
parent
953a9d7fd1
commit
8f8adcf71b
@@ -741,6 +741,7 @@ export default function Dashboard({
|
||||
}
|
||||
|
||||
message = gettext('Loading dashboard...');
|
||||
if (did && !props.dbConnected) return;
|
||||
if (did) url += sid + '/' + did;
|
||||
else url += sid;
|
||||
|
||||
@@ -771,7 +772,7 @@ export default function Dashboard({
|
||||
return () => {
|
||||
setRefresh();
|
||||
};
|
||||
}, [nodeData, val, did, preferences, infoMsg, refresh]);
|
||||
}, [nodeData, val, did, preferences, infoMsg, refresh, props.dbConnected]);
|
||||
|
||||
const RefreshButton = () =>{
|
||||
return(
|
||||
@@ -874,6 +875,7 @@ Dashboard.propTypes = {
|
||||
did: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
|
||||
row: PropTypes.object,
|
||||
serverConnected: PropTypes.bool,
|
||||
dbConnected: PropTypes.bool,
|
||||
};
|
||||
|
||||
export function ChartContainer(props) {
|
||||
|
||||
Reference in New Issue
Block a user