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

Move download-folder-button to the dropdown #3952

Merged
merged 5 commits into from Feb 9, 2021
Merged

Move download-folder-button to the dropdown #3952

merged 5 commits into from Feb 9, 2021

Conversation

yakov116
Copy link
Member

@yakov116 yakov116 commented Feb 8, 2021

  1. LINKED ISSUES:
    Resolves Move download-folder-button to the dropdown #3949

  2. TEST URLS:
    https://github.com/sindresorhus/refined-github/tree/main/media

  3. SCREENSHOT:

    image

I added repeatOnBackButton: true, since I found that when going from dir to dir it was not applying unless I refreshed (nothing to do with the current PR)

@fregante
Copy link
Member

fregante commented Feb 8, 2021

I found that when going from dir to dir it was not applying

That’s the same as #3945. The global anti-duplication mechanism is preventing the call of inits on file lists. It’s a tough problem 😕 it’s worth adding a comment pointing to #3945 on the repeatOnBackButton line

@yakov116
Copy link
Member Author

yakov116 commented Feb 8, 2021

@fregante is this good?

Comment on lines 27 to 30
<a
className="dropdown-item btn-link"
href={downloadUrl.href}
>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<a
className="dropdown-item btn-link"
href={downloadUrl.href}
>
<a className="dropdown-item btn-link" href={downloadUrl.href}>

Is btn-link required here? It's not a <button> to begin with

Copy link
Member Author

Choose a reason for hiding this comment

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

I will double check

Co-authored-by: Federico <me@fregante.com>
</a>
);
for (const deleteButton of select.all(`form[action^="/${getRepo()!.nameWithOwner}/tree/delete"]:not(.rgh-download-folder)`)) {
deleteButton.classList.add('rgh-download-folder');
Copy link
Member Author

Choose a reason for hiding this comment

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

Add another TODO here?

@fregante
Copy link
Member

fregante commented Feb 9, 2021

After the outstanding comments, feel free to merge this, #3962 and release a new version via the Actions repo tab 🚢

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

Successfully merging this pull request may close these issues.

Move download-folder-button to the dropdown
2 participants