mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed blank screen issue while opening query tools in new tab from native menu. #5503
This commit is contained in:
@@ -14,7 +14,7 @@ from flask import url_for
|
||||
from flask_babel import Domain, gettext
|
||||
|
||||
from pgadmin.utils import PgAdminModule
|
||||
from pgadmin.utils.ajax import bad_request
|
||||
from pgadmin.utils.ajax import bad_request, make_json_response
|
||||
from pgadmin.utils.constants import MIMETYPE_APP_JS
|
||||
|
||||
MODULE_NAME = 'tools'
|
||||
@@ -67,6 +67,15 @@ class ToolsModule(PgAdminModule):
|
||||
from .user_management import blueprint as module
|
||||
app.register_blueprint(module)
|
||||
|
||||
def get_exposed_url_endpoints(self):
|
||||
"""
|
||||
Returns:
|
||||
list: URL endpoints for tools module
|
||||
"""
|
||||
return [
|
||||
'tools.initialize',
|
||||
]
|
||||
|
||||
|
||||
# Initialise the module
|
||||
blueprint = ToolsModule(MODULE_NAME, __name__)
|
||||
@@ -94,3 +103,14 @@ def translations():
|
||||
status=200,
|
||||
mimetype=MIMETYPE_APP_JS
|
||||
)
|
||||
|
||||
|
||||
@blueprint.route(
|
||||
'/initialize/',
|
||||
methods=["GET"],
|
||||
endpoint='initialize'
|
||||
)
|
||||
def initialize():
|
||||
return make_json_response(
|
||||
data={}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user