mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Adding support for collection browser node.
This commit is contained in:
committed by
Ashesh Vashi
parent
52b86b6fb4
commit
ed8600ef89
@@ -119,7 +119,8 @@ class BrowserModule(PgAdminModule):
|
||||
for name, script in [
|
||||
['pgadmin.browser', 'js/browser'],
|
||||
['pgadmin.browser.error', 'js/error'],
|
||||
['pgadmin.browser.node', 'js/node']]:
|
||||
['pgadmin.browser.node', 'js/node'],
|
||||
['pgadmin.browser.collection', 'js/collection']]:
|
||||
scripts.append({
|
||||
'name': name,
|
||||
'path': url_for('browser.index') + script,
|
||||
@@ -297,6 +298,13 @@ def node_js():
|
||||
render_template('browser/js/node.js', _=gettext),
|
||||
200, {'Content-Type': 'application/x-javascript'})
|
||||
|
||||
@blueprint.route("/js/collection.js")
|
||||
@login_required
|
||||
def collection_js():
|
||||
return make_response(
|
||||
render_template('browser/js/collection.js', _=gettext),
|
||||
200, {'Content-Type': 'application/x-javascript'})
|
||||
|
||||
|
||||
@blueprint.route("/browser.css")
|
||||
@login_required
|
||||
|
||||
Reference in New Issue
Block a user