Skip to content

Commit

Permalink
Merge pull request #180 from uselagoon/truncate_legacy_keys
Browse files Browse the repository at this point in the history
Truncate deploy keys over 80 characters - New Environment modal
  • Loading branch information
tobybellwood authored Nov 10, 2023
2 parents 7bb73dd + 49af0b3 commit 0b715c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/NewEnvironment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ const NewEnvironment = ({
{loadingDK ? <div className="loader"></div>
: !showDKField ?
hashValue(dkValue).substring(0, 25)
: dkValue
: dkValue.length > 80 ?
dkValue.substring(0, 80) + '...'
: dkValue
}
</div>
<span className="showHide" onClick={() => setShowDKField(!showDKField)}>
Expand Down

0 comments on commit 0b715c0

Please sign in to comment.