Skip to content

Commit

Permalink
feat: Add a pill for server side only flags (#2780)
Browse files Browse the repository at this point in the history
  • Loading branch information
novakzaballa committed Sep 14, 2023
1 parent b1d3323 commit 2b70c68
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions frontend/web/components/FeatureRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,23 @@ class TheComponent extends Component {
}`}
</Tooltip>
)}
{projectFlag.is_server_key_only && (
<Tooltip
title={
<span
className='chip me-2 chip--xs bg-primary text-white'
style={{ border: 'none' }}
>
<span>{'Server-side only'}</span>
</span>
}
place='top'
>
{
'Prevent this feature from being accessed with client-side SDKs.'
}
</Tooltip>
)}
<TagValues
inline
projectId={`${projectId}`}
Expand Down

3 comments on commit 2b70c68

@vercel
Copy link

@vercel vercel bot commented on 2b70c68 Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs-git-main-flagsmith.vercel.app
docs.flagsmith.com
docs.bullet-train.io
docs-flagsmith.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 2b70c68 Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 2b70c68 Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.