Skip to content

Commit

Permalink
feat: add copy button to server keys (#2943)
Browse files Browse the repository at this point in the history
Co-authored-by: Moreno Garcia <moreno.garcia@flagsmith.com>
  • Loading branch information
gnumoreno and Moreno Garcia committed Nov 9, 2023
1 parent 170419e commit b78842b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions frontend/web/components/ServerSideSDKKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,17 @@ class ServerSideSDKKeys extends Component {
<div className='table-column'>
<Token style={{ width: 280 }} token={key} />
</div>
<Button
onClick={() => {
navigator.clipboard.writeText(
key,
)
toast('Copied')
}}
className='ml-2 btn-with-icon'
>
<Icon name='copy' width={20} fill='#656D7B' />
</Button>
<div className='table-column'>
<Button
onClick={() => this.remove(id, name)}
Expand Down

3 comments on commit b78842b

@vercel
Copy link

@vercel vercel bot commented on b78842b Nov 9, 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-flagsmith.vercel.app
docs-git-main-flagsmith.vercel.app
docs.bullet-train.io
docs.flagsmith.com

@vercel
Copy link

@vercel vercel bot commented on b78842b Nov 9, 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 b78842b Nov 9, 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.