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 to clipboard button in Diagnostics page. #2717

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

Conversation

ildyria
Copy link
Member

@ildyria ildyria commented Nov 20, 2024

No description provided.

@ildyria ildyria added the Review: easy Easy review expected: probably just need a quick to go through. label Nov 20, 2024
@ildyria ildyria added this to the 6.1.0 milestone Nov 20, 2024
@ildyria ildyria requested a review from d7415 November 20, 2024 13:22
Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.72%. Comparing base (f6eb39e) to head (92b830e).
Report is 1 commits behind head on master.

Additional details and impacted files
---- 🚨 Try these New Features:

const canCopy = computed(() => errorLoaded.value && infoLoaded.value && configurationLoaded.value);

function copy() {
const errors = document.getElementById("ErrorsData");
Copy link
Contributor

Choose a reason for hiding this comment

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

Whoa, that's definitely not the way to do it! 💩

it is possible to transmit the data to the outside via the emit
https://vuejs.org/guide/typescript/composition-api#typing-component-emits

Copy link
Member Author

@ildyria ildyria Nov 20, 2024

Choose a reason for hiding this comment

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

I know, but I didn't feel like it. 😆
And that was simpler to "copy" the content that way.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's still not the way to do it. The other is more standardized 😄

resources/js/views/Diagnostics.vue Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Review: easy Easy review expected: probably just need a quick to go through.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants