Skip to content

Add copy URL button to view paste page#166

Open
Robin5605 wants to merge 2 commits intosupakeen:masterfrom
Robin5605:copyurl-button
Open

Add copy URL button to view paste page#166
Robin5605 wants to merge 2 commits intosupakeen:masterfrom
Robin5605:copyurl-button

Conversation

@Robin5605
Copy link
Copy Markdown

Closes #164

Add a "Copy URL" button to the view paste page that allows users to quickly copy the paste URL into their clipboard for sharing. The site now looks like the below image:
image

@supakeen
Copy link
Copy Markdown
Owner

I like it, perhaps if we grow more buttons something should be done about the UI in a followup.

};

let shareButton = document.getElementById("copyurl-btn");

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs a null check or coalesce before continuing into the event listener below.

@supakeen
Copy link
Copy Markdown
Owner

The red CI here is due to some dependency woes, if you rebase on master it will turn green :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a share button to paste view

2 participants