Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copy URL button to view paste page #166

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Robin5605
Copy link

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
Owner

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

@@ -167,6 +167,12 @@ function setupShowPage() {
});
};

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

Copy link
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
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