mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Cleanup some ugly code formatting.
This commit is contained in:
parent
18d465e7bc
commit
533833cb02
@ -55,7 +55,7 @@ define(
|
||||
* otherwise enabled.
|
||||
*/
|
||||
query_tool_menu_enabled = function(obj) {
|
||||
if(!_.isUndefined(obj) && !_.isNull(obj))
|
||||
if(!_.isUndefined(obj) && !_.isNull(obj)) {
|
||||
if(_.indexOf(unsupported_nodes, obj._type) == -1) {
|
||||
if (obj._type == 'database' && obj.allowConn)
|
||||
return true;
|
||||
@ -63,9 +63,12 @@ define(
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
else
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
// Define the nodes on which the menus to be appear
|
||||
|
Loading…
Reference in New Issue
Block a user