Skip to content

Commit

Permalink
fix: tweak sdk copy (#3341)
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeeeenster committed Jan 29, 2024
1 parent 8050aed commit 13617c5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
3 changes: 1 addition & 2 deletions frontend/web/components/AdminAPIKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,10 @@ export default class AdminAPIKeys extends PureComponent {
{!!apiKeys && !!apiKeys.length && (
<PanelSearch
className='no-pad'
title='API Keys'
items={apiKeys}
header={
<Row className='table-header'>
<Flex className='table-column px-3'>API Keys</Flex>
<Flex className='table-column px-3'>Terraform API Keys</Flex>
<Flex className='table-column'>Created</Flex>
<div
className='table-column text-center'
Expand Down
2 changes: 1 addition & 1 deletion frontend/web/components/ServerSideSDKKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class ServerSideSDKKeys extends Component {
using our{' '}
<Button
theme='text'
href='https://docs.flagsmith.com/clients/overview'
href='https://docs.flagsmith.com/clients/overview#server-side-sdks'
target='__blank'
>
Server-side Environment Keys
Expand Down
14 changes: 12 additions & 2 deletions frontend/web/components/pages/EnvironmentSettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,11 +660,21 @@ const EnvironmentSettingsPage = class extends Component {
</div>
</div>
</TabItem>
<TabItem tabLabel='Keys'>
<TabItem tabLabel='SDK Keys'>
<FormGroup className='mt-4'>
<h5 className='mb-5'>Client-side Environment Key</h5>
<div className='col-md-6'>
<label>Environment Key</label>
<p className='fs-small lh-sm mb-0'>
Use this key to initialise{' '}
<Button
theme='text'
href='https://docs.flagsmith.com/clients/overview#client-side-sdks'
target='__blank'
>
Client-side
</Button>
{' '}SDKs.
</p>
<Row>
<Flex>
<Input
Expand Down
2 changes: 1 addition & 1 deletion frontend/web/components/pages/OrganisationSettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ const OrganisationSettingsPage = class extends Component {
)}

{displayedTabs.includes(SettingsTab.Keys) && (
<TabItem tabLabel='Keys'>
<TabItem tabLabel='API Keys'>
<AdminAPIKeys organisationId={organisation.id} />
</TabItem>
)}
Expand Down

3 comments on commit 13617c5

@vercel
Copy link

@vercel vercel bot commented on 13617c5 Jan 29, 2024

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.bullet-train.io
docs-flagsmith.vercel.app
docs-git-main-flagsmith.vercel.app
docs.flagsmith.com

@vercel
Copy link

@vercel vercel bot commented on 13617c5 Jan 29, 2024

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 13617c5 Jan 29, 2024

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.