Skip to content

Commit

Permalink
feat(ui): hide API keys from integrations list (#3019)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell authored Nov 21, 2023
1 parent 4f79d21 commit b02a524
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/web/components/modals/CreateEditIntegrationModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ const CreateEditIntegration = class extends Component {
</label>
</div>
{this.props.readOnly ? (
<div className='mb-3'>{this.state.data[field.key]}</div>
<div className='mb-3'>
{field.hidden ? this.state.data[field.key].replace(/./g, '*') : this.state.data[field.key]}
</div>
) : field.options ? (
<div className='full-width mb-2'>
<Select
Expand Down Expand Up @@ -216,7 +218,7 @@ const CreateEditIntegration = class extends Component {
value={this.state.data[field.key]}
onChange={(e) => this.update(field.key, e)}
isValid={!!this.state.data[field.key]}
type='text'
type={field.hidden ? 'password' : 'text'}
className='full-width mb-2'
/>
)}
Expand Down

3 comments on commit b02a524

@vercel
Copy link

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