diff --git a/superset-frontend/src/dashboard/components/Header/Header.test.tsx b/superset-frontend/src/dashboard/components/Header/Header.test.tsx
index 2eb73091bcd8..4f8bf64f68cd 100644
--- a/superset-frontend/src/dashboard/components/Header/Header.test.tsx
+++ b/superset-frontend/src/dashboard/components/Header/Header.test.tsx
@@ -37,7 +37,12 @@ const createProps = () => ({
userId: '1',
metadata: {},
common: {
- conf: {},
+ conf: {
+ DASHBOARD_AUTO_REFRESH_INTERVALS: [
+ [0, "Don't refresh"],
+ [10, '10 seconds'],
+ ],
+ },
},
},
user: {
diff --git a/superset-frontend/src/dashboard/components/Header/HeaderActionsDropdown/HeaderActionsDropdown.test.tsx b/superset-frontend/src/dashboard/components/Header/HeaderActionsDropdown/HeaderActionsDropdown.test.tsx
index eb3c6aeb4e97..36a3e2cb2c38 100644
--- a/superset-frontend/src/dashboard/components/Header/HeaderActionsDropdown/HeaderActionsDropdown.test.tsx
+++ b/superset-frontend/src/dashboard/components/Header/HeaderActionsDropdown/HeaderActionsDropdown.test.tsx
@@ -38,7 +38,12 @@ const createProps = () => ({
userId: '1',
metadata: {},
common: {
- conf: {},
+ conf: {
+ DASHBOARD_AUTO_REFRESH_INTERVALS: [
+ [0, "Don't refresh"],
+ [10, '10 seconds'],
+ ],
+ },
},
},
dashboardTitle: 'Title',
diff --git a/superset-frontend/src/dashboard/components/Header/HeaderActionsDropdown/index.jsx b/superset-frontend/src/dashboard/components/Header/HeaderActionsDropdown/index.jsx
index 3d25b049fba5..eb20c5701951 100644
--- a/superset-frontend/src/dashboard/components/Header/HeaderActionsDropdown/index.jsx
+++ b/superset-frontend/src/dashboard/components/Header/HeaderActionsDropdown/index.jsx
@@ -239,6 +239,9 @@ class HeaderActionsDropdown extends React.PureComponent {
hash: window.location.hash,
});
+ const refreshIntervalOptions =
+ dashboardInfo.common?.conf?.DASHBOARD_AUTO_REFRESH_INTERVALS;
+
return (