Skip to content

Commit

Permalink
feat(explore): Feature flag old trace view (#80838)
Browse files Browse the repository at this point in the history
Put the button to go back to the old trace view behind a feature flag.

Depends on #80837
  • Loading branch information
Zylphrex authored Nov 15, 2024
1 parent 2100cae commit 6e25f9b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions static/app/views/explore/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {useCallback} from 'react';
import styled from '@emotion/styled';
import type {Location} from 'history';

import Feature from 'sentry/components/acl/feature';
import {Button} from 'sentry/components/button';
import ButtonBar from 'sentry/components/buttonBar';
import FeedbackWidgetButton from 'sentry/components/feedback/widget/feedbackWidgetButton';
Expand Down Expand Up @@ -80,9 +81,11 @@ function ExploreContentImpl({}: ExploreContentProps) {
</Layout.HeaderContent>
<Layout.HeaderActions>
<ButtonBar gap={1}>
<Button onClick={switchToOldTraceExplorer} size="sm">
{t('Switch to Old Trace Explore')}
</Button>
<Feature organization={organization} features="visibility-explore-admin">
<Button onClick={switchToOldTraceExplorer} size="sm">
{t('Switch to Old Trace Explore')}
</Button>
</Feature>
<FeedbackWidgetButton />
</ButtonBar>
</Layout.HeaderActions>
Expand Down

0 comments on commit 6e25f9b

Please sign in to comment.