Resolved some of the issue due to menu generation from python code.
As modules are loaded later, module object can not be referred from the python
code. Hence - moving some of the menu generation at javascript module level.
Branch
------
WEBPACK_DEVEL
Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=d0bd249d7733ae7026384e4b512201f878b7dca3
Modified Files
--------------
web/pgadmin/about/__init__.py | 18 -------------
web/pgadmin/about/static/js/about.js | 30 ++++++++++++++++------
.../servers/databases/static/js/database.js | 6 ++---
web/pgadmin/browser/templates/browser/index.html | 10 +++++---
web/pgadmin/browser/templates/browser/js/utils.js | 5 ++--
web/pgadmin/dashboard/__init__.py | 3 ---
web/pgadmin/misc/file_manager/__init__.py | 5 ----
web/pgadmin/preferences/__init__.py | 13 ----------
web/pgadmin/preferences/static/js/preferences.js | 21 ++++++++++-----
web/pgadmin/settings/__init__.py | 18 +++----------
web/pgadmin/settings/static/js/settings.js | 21 ++++++++++-----
web/webpack/bundles/tools_nodes.js | 2 +-
web/webpack/modules/core.js | 2 ++
13 files changed, 69 insertions(+), 85 deletions(-)