diff --git a/horizon/static/horizon/js/horizon.js b/horizon/static/horizon/js/horizon.js
index 3caf127ee1..8edd37c078 100644
--- a/horizon/static/horizon/js/horizon.js
+++ b/horizon/static/horizon/js/horizon.js
@@ -38,6 +38,11 @@ var Horizon = function () {
.replace(/\//g, '/');
};
+ /* Storage for backend configuration variables which the frontend
+ * should be aware of.
+ */
+ horizon.conf = {};
+
return horizon;
};
diff --git a/openstack_dashboard/static/app/app.module.js b/openstack_dashboard/static/app/app.module.js
index da5ef6dc1a..35f1acd0cc 100644
--- a/openstack_dashboard/static/app/app.module.js
+++ b/openstack_dashboard/static/app/app.module.js
@@ -59,20 +59,11 @@
.concat(horizonPlugInModules)
)
- .constant('horizon.app.conf', {
- // Placeholders; updated by Django.
- static_url: null,
- ajax: {
- queue_limit: null
- }
- })
-
.run(updateHorizon);
updateHorizon.$inject = [
'gettextCatalog',
'horizon.framework.conf.spinner_options',
- 'horizon.app.conf',
'horizon.framework.util.tech-debt.helper-functions',
'$cookieStore',
'$http',
@@ -82,7 +73,6 @@
function updateHorizon(
gettextCatalog,
spinnerOptions,
- hzConfig,
hzUtils,
$cookieStore,
$http,
@@ -93,9 +83,7 @@
//expose the configuration for horizon legacy variable
horizon.utils = hzUtils;
- horizon.conf = angular.extend({
- spinner_options: spinnerOptions
- }, hzConfig);
+ horizon.conf.spinner_options = spinnerOptions;
horizon.cookies = angular.extend({}, $cookieStore, {
put: put,
diff --git a/openstack_dashboard/static_settings.py b/openstack_dashboard/static_settings.py
index 9e847227c3..fe6f5dc1b4 100644
--- a/openstack_dashboard/static_settings.py
+++ b/openstack_dashboard/static_settings.py
@@ -153,5 +153,5 @@ def find_static_files(ROOT_PATH, HORIZON_CONFIG):
file_discovery.populate_horizon_config(
HORIZON_CONFIG,
os.path.join(ROOT_PATH, 'static/'),
- sub_path='app/core/'
+ sub_path='app/'
)
diff --git a/openstack_dashboard/templates/horizon/_conf.html b/openstack_dashboard/templates/horizon/_conf.html
index 3d42af67dd..65fb8840b5 100644
--- a/openstack_dashboard/templates/horizon/_conf.html
+++ b/openstack_dashboard/templates/horizon/_conf.html
@@ -13,36 +13,32 @@
{% endcompress %}
+ global.horizonPlugInModules = {{ HORIZON_CONFIG.angular_modules|default:"[]"|safe }};
-{% compress js %}
-
-{% endcompress %}
-
-