Skip to content

Commit

Permalink
feat: show the "move to cloud" cta on dev (#20043)
Browse files Browse the repository at this point in the history
show the "move to cloud" cta on dev
  • Loading branch information
raquelmsmith authored Feb 5, 2024
1 parent da627d7 commit afe16d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/layout/navigation/TopBar/AccountPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export function AccountPopoverOverlay(): JSX.Element {
const { currentOrganization } = useValues(organizationLogic)
const { mobileLayout } = useValues(navigationLogic)
const { openSidePanel } = useActions(sidePanelStateLogic)
const { preflight, isCloudOrDev } = useValues(preflightLogic)
const { preflight, isCloudOrDev, isCloud } = useValues(preflightLogic)
const { closeAccountPopover } = useActions(navigationLogic)

return (
Expand Down Expand Up @@ -248,7 +248,7 @@ export function AccountPopoverOverlay(): JSX.Element {
<FeaturePreviewsButton />
{user?.is_staff && <InstanceSettings />}
</AccountPopoverSection>
{!isCloudOrDev && (
{!isCloud && (
<AccountPopoverSection>
<LemonButton
onClick={closeAccountPopover}
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/scenes/PreflightCheck/preflightLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ export const preflightLogic = kea<preflightLogicType>([
return preflight?.cloud || preflight?.is_debug
},
],
isCloud: [
(s) => [s.preflight],
(preflight): boolean | undefined => {
return preflight?.cloud
},
],
isDev: [
(s) => [s.preflight],
(preflight): boolean | undefined => {
Expand Down

0 comments on commit afe16d2

Please sign in to comment.