Skip to content

Commit

Permalink
refactor: bring back copy title
Browse files Browse the repository at this point in the history
  • Loading branch information
awesthouse committed May 28, 2024
1 parent 53aa3c0 commit 622cf95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/dm-core-plugins/src/yaml/YamlPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ export const YamlPlugin = (props: YamlPluginProps) => {
</Tooltip>
)}
<Tooltip title='Copy'>
<ActionButton onClick={copyToClipboard}>
<ActionButton
title={`Copy as ${showAsJSON ? 'JSON' : 'YAML'}`}
onClick={copyToClipboard}
>
<Icon data={copy} />
</ActionButton>
</Tooltip>
Expand Down

0 comments on commit 622cf95

Please sign in to comment.