mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Removing dynamic module loading and replacing it with static loading. Fixes #7492
Gets rid of all occurrences and usage of get_own_javascripts since it is no longer used.
This commit is contained in:
committed by
Akshay Joshi
parent
e46468321d
commit
cb635f6706
@@ -32,30 +32,9 @@ class MaintenanceModule(PgAdminModule):
|
||||
|
||||
A module class for maintenance tools of vacuum which is derived from
|
||||
PgAdminModule.
|
||||
|
||||
Methods:
|
||||
-------
|
||||
* get_own_javascripts()
|
||||
- Method is used to load the required javascript files for maintenance
|
||||
tool module
|
||||
* get_own_stylesheets()
|
||||
- Returns the list of CSS file used by Maintenance module
|
||||
"""
|
||||
LABEL = _('Maintenance')
|
||||
|
||||
def get_own_javascripts(self):
|
||||
scripts = list()
|
||||
for name, script in [
|
||||
['pgadmin.tools.maintenance', 'js/maintenance']
|
||||
]:
|
||||
scripts.append({
|
||||
'name': name,
|
||||
'path': url_for('maintenance.index') + script,
|
||||
'when': None
|
||||
})
|
||||
|
||||
return scripts
|
||||
|
||||
def get_own_stylesheets(self):
|
||||
"""
|
||||
Returns:
|
||||
|
||||
Reference in New Issue
Block a user