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

Missing "onClick" prop in @verdaccio/ui-components Link component preventing handleDownload call in Package.tsx #3988 #3989

Merged

Conversation

moglerdev
Copy link
Contributor

At present, attempting to download the "tar" file from the Package List on the homepage does not work as expected. Clicking on the link only opens a new tab, but no download action occurs.

The root cause of this problem lies in the Link Component within @verdaccio/ui-components. It lacks a necessary onClick prop, preventing the execution of the handleDownload function in Package.tsx.

In the "Link" component, the onClick handler was not provided,
leading to the absence of a download action in the Package.tsx
renderDownloadLink component.
The "external" attribute is unnecessary in this context
since the download action is triggered by the "handleDownload" callback.
@moglerdev
Copy link
Contributor Author

Hey @juanpicado,
Is the UI Component missing a Netlify authentication token for the preview deployment, or did I misunderstand something? 🤔

@juanpicado
Copy link
Member

It's fine a limitation of GitHub no table to share token with forks I will check later thanks !

@juanpicado
Copy link
Member

juanpicado commented Aug 24, 2023

Please add the changeset, check contribution guidelines how to do it otherwise I cannot rleease

Copy link
Member

@juanpicado juanpicado left a comment

Choose a reason for hiding this comment

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

Thanks !

@juanpicado juanpicado merged commit e056c8d into verdaccio:master Aug 24, 2023
45 of 46 checks passed
@juanpicado juanpicado added this to the 6.x milestone Aug 24, 2023
juanpicado added a commit that referenced this pull request Aug 26, 2023
update core dependencies (7.x) no breaking changes, just internal bump up to prepare a major release (6.x)
🐛 fix fix: local search keyword undefined errors #3992
🐛 fix Missing "onClick" prop in @verdaccio/ui-components Link component preventing handleDownload call in Package.tsx #3988 #3989
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants