Skip to content

Commit

Permalink
Add url to copy link button
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj authored and scruffian committed Feb 7, 2024
1 parent 682cfc4 commit 0e857f4
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -137,7 +137,10 @@ export default function LinkPreview( {
) }
<Button
icon={ copySmall }
label={ __( 'Copy link' ) }
// Ends up looking like "Copy link: https://example.com"
label={ `${ __( 'Copy link' ) }${
isEmptyURL ? '' : `: ${ value.url }`
}` }
ref={ ref }
disabled={ isEmptyURL }
size="compact"
Expand Down

0 comments on commit 0e857f4

Please sign in to comment.