Skip to content

Commit

Permalink
refactor: update copy link rendering condition (#1592)
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk authored Dec 20, 2023
1 parent 87fec4d commit ada8935
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,9 @@ export class W3mConnectingWcQrcode extends W3mConnectingWidget {
}

private copyTemplate() {
if (!this.uri || !this.ready) {
return null
}
const inactive = !this.uri || !this.ready

return html`<wui-link @click=${this.onCopyUri} color="fg-200">
return html`<wui-link .disabled=${inactive} @click=${this.onCopyUri} color="fg-200">
<wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
Copy link
</wui-link>`
Expand Down

3 comments on commit ada8935

@vercel
Copy link

@vercel vercel bot commented on ada8935 Dec 20, 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 ada8935 Dec 20, 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 ada8935 Dec 20, 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.