Skip to content

Commit 591fbbc

Browse files
authored
fix: status page is a cloud feature only (#4800)
1 parent a22ed88 commit 591fbbc

File tree

1 file changed

+15
-24
lines changed

1 file changed

+15
-24
lines changed

src/pageLayout/containers/TreeNav.tsx

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const TreeSidebar: FC<ReduxProps> = ({
154154
</TreeNav.Item>
155155
)
156156
})}
157-
{CLOUD && isFlagEnabled('helpBar') && (
157+
{isFlagEnabled('helpBar') && (
158158
<TreeNav.Item
159159
id="support"
160160
testID="nav-item-support"
@@ -176,17 +176,19 @@ const TreeSidebar: FC<ReduxProps> = ({
176176
/>
177177
)}
178178
/>
179-
<TreeNav.SubItem
180-
id="status-page"
181-
label="Status Page"
182-
testID="nav-subitem-status"
183-
linkElement={() => (
184-
<SafeBlankLink
185-
href="https://status.influxdata.com"
186-
onClick={() => handleEventing('status-page')}
187-
/>
188-
)}
189-
/>
179+
{CLOUD && (
180+
<TreeNav.SubItem
181+
id="status-page"
182+
label="Status Page"
183+
testID="nav-subitem-status"
184+
linkElement={() => (
185+
<SafeBlankLink
186+
href="https://status.influxdata.com"
187+
onClick={() => handleEventing('status-page')}
188+
/>
189+
)}
190+
/>
191+
)}
190192
<TreeNav.SubItem
191193
id="documentation"
192194
label="Documentation"
@@ -198,18 +200,7 @@ const TreeSidebar: FC<ReduxProps> = ({
198200
/>
199201
)}
200202
/>
201-
<TreeNav.SubItem
202-
id="status-page"
203-
label="Status Page"
204-
testID="nav-subitem-status"
205-
linkElement={() => (
206-
<SafeBlankLink
207-
href="https://status.influxdata.com"
208-
onClick={() => handleEventing('status-page')}
209-
/>
210-
)}
211-
/>
212-
{isFlagEnabled('helpBarSfdcIntegration') && (
203+
{CLOUD && isFlagEnabled('helpBarSfdcIntegration') && (
213204
<TreeNav.SubItem
214205
id="contactSupport"
215206
label="Contact Support"

0 commit comments

Comments
 (0)