Skip to content

Commit

Permalink
fix(ui): COPY JSON for ArgoCD version should include trailing newline (
Browse files Browse the repository at this point in the history
#5117) (#14917) (#14939)

Signed-off-by: Vipin M S <vipinachar2016@gmail.com>
Co-authored-by: Vipin M S <40431065+vipinachar@users.noreply.github.com>
  • Loading branch information
gcp-cherry-pick-bot[bot] and vipinachar committed Aug 7, 2023
1 parent 990ab0e commit fcdaf9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class VersionPanel extends React.Component<VersionPanelProps, {copyState:
}

private async onCopy(version: VersionMessage): Promise<void> {
const stringifiedVersion = JSON.stringify(version, undefined, 4);
const stringifiedVersion = JSON.stringify(version, undefined, 4) + '\n';
try {
await navigator.clipboard.writeText(stringifiedVersion);
this.setState({copyState: 'success'});
Expand Down

0 comments on commit fcdaf9b

Please sign in to comment.