Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

change feature flag name to smartHandoffs

Jason Kent8ba7f1d1eefa
diff --git a/config/default/common/features.json b/config/default/common/features.json
index 03ba093d7..c75f879da 100644
--- a/config/default/common/features.json
+++ b/config/default/common/features.json
@@ -1,6 +1,6 @@
{
"features": {
- "dataDownload": true,
+ "smartHandoffs": true,
"animation": true,
"urlShortening": true,
"customPalettes": true,
diff --git a/web/js/containers/sidebar/sidebar.js b/web/js/containers/sidebar/sidebar.js
index b79571d32..bcdc5bc74 100644
--- a/web/js/containers/sidebar/sidebar.js
+++ b/web/js/containers/sidebar/sidebar.js
@@ -31,7 +31,7 @@ const { SIDEBAR_COLLAPSED } = safeLocalStorage.keys;
const getActiveTabs = function(config) {
const { features } = config;
return {
- download: features.dataDownload,
+ download: features.smartHandoffs,
layers: true,
events: features.naturalEvents,
};
@@ -175,8 +175,8 @@ class Sidebar extends React.Component {
} = this.props;
if (isMobile && activeTab === 'download') changeTab('layers');
const wheelCallBack = util.browser.chrome ? util.preventPinch : null;
- const naturalEventsFeatureEnabled = config.features.naturalEvents;
- const dataDownloadFeatureEnabled = config.features.dataDownload;
+ const { naturalEvents } = config.features;
+ const { smartHandoffs } = config.features;
return (
<ErrorBoundary>
<section id="wv-sidebar">
@@ -225,7 +225,7 @@ class Sidebar extends React.Component {
{this.getProductsToRender(activeTab, isCompareMode)}
</TabPane>
<TabPane tabId="events">
- {naturalEventsFeatureEnabled && (
+ {naturalEvents && (
<Events
isActive={activeTab === 'events'}
height={subComponentHeight}
@@ -233,7 +233,7 @@ class Sidebar extends React.Component {
)}
</TabPane>
<TabPane tabId="download">
- {dataDownloadFeatureEnabled && (
+ {smartHandoffs && (
<SmartHandoff
isActive={activeTab === 'download'}
tabTypes={tabTypes}