
this commit introduces 'murano_base.html' as the base template for all murano-dashboard templates. This commit contains js block, that contains and compresses all of the murano-dashboard js code. All js are moved from individual pages to murano_base.html. This means, that murano-dashboard js code has to behave nice, when put on a page, not designed for it and should not assume, that certain elements are present in DOM tree. To achieve this the commit does the following: * makes selectors more specific for 'environments-in-place.js' * makes topology code only launch on tab init * makes import form code only launch on modal init Also moves modal init code to ADD_JS_FILES section, to allow calling murano modals from external dashboards (i.e. app-catalog-ui) Change-Id: I342702b6b236b3323f57a4a26fdf4120505b9800 Partial-Bug: #1358233
24 lines
574 B
Python
24 lines
574 B
Python
from muranodashboard import exceptions
|
|
|
|
# The name of the dashboard to be added to HORIZON['dashboards']. Required.
|
|
DASHBOARD = 'murano'
|
|
|
|
# If set to True, this dashboard will not be added to the settings.
|
|
DISABLED = False
|
|
|
|
ADD_INSTALLED_APPS = [
|
|
'muranodashboard',
|
|
]
|
|
|
|
ADD_EXCEPTIONS = {
|
|
'recoverable': exceptions.RECOVERABLE,
|
|
'not_found': exceptions.NOT_FOUND,
|
|
'unauthorized': exceptions.UNAUTHORIZED,
|
|
}
|
|
|
|
ADD_JS_FILES = [
|
|
'muranodashboard/js/murano.service.js',
|
|
'muranodashboard/js/upload_form.js',
|
|
'muranodashboard/js/import_bundle_form.js',
|
|
]
|