diff --git a/muranodashboard/static/muranodashboard/js/horizon.tables+reload.js b/muranodashboard/static/muranodashboard/js/murano.tables.js
similarity index 77%
rename from muranodashboard/static/muranodashboard/js/horizon.tables+reload.js
rename to muranodashboard/static/muranodashboard/js/murano.tables.js
index fed2c9950..eab670b42 100644
--- a/muranodashboard/static/muranodashboard/js/horizon.tables+reload.js
+++ b/muranodashboard/static/muranodashboard/js/murano.tables.js
@@ -31,3 +31,18 @@ $(function() {
}
});
});
+
+var reloadEnvironmentCalled = false;
+
+$(function() {
+ "use strict";
+ $("table#environments").on("update", function () {
+ var $environmentsRows = $(this).find('tbody tr:visible').not('.empty');
+ if ($environmentsRows.length === 0) {
+ if (reloadEnvironmentCalled === false) {
+ reloadEnvironmentCalled = true;
+ location.reload(true);
+ }
+ }
+ });
+});
diff --git a/muranodashboard/templates/murano_base.html b/muranodashboard/templates/murano_base.html
index 7a66a063c..d8f711f3d 100644
--- a/muranodashboard/templates/murano_base.html
+++ b/muranodashboard/templates/murano_base.html
@@ -8,10 +8,9 @@
-
-
+