-
Notifications
You must be signed in to change notification settings - Fork 489
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
Files page remove pin button broken #607
Comments
Hello @sickill! Thanks for reporting this! 😄 Fortunately, I can tell you that the latest version of WebUI (the one in this repository) doesn't contain this issue anymore. I think this should be closed. /cc @diasdavid |
@whyrusleeping @lgierth @Kubuxu can we ship the new (fixed) webui with the next release of go-ipfs? |
Sure! Pin it, then update core/corehttp/webui.go |
@diasdavid |
@lgierth I tried but it didn't work: |
@hacdias you are now a pinbot friend. Wanna update go-ipfs hash? Also, wanna add this route to js-ipfs daemon? |
Sure, but how? I know I have to pin an hash with a name. The name is
Yes, but where? I'm not yet familiarized with everything 😛 |
For go-ipfs@hacdias on the root of this repo do With your daemon on go to pinbot and do Once that is finished, you can now submit a PR to https://github.com/ipfs/go-ipfs/blob/master/core/corehttp/webui.go For js-ipfsAdd a route here for |
Done! ipfs/kubo#4449
I'll see that later hopefully 😄 |
@diasdavid, adding a route for The same happens with go-ipfs, but go-ipfs has |
@hacdias you got it right. You should indeed create that endpoint on the API which is on the folder next to the gateway -> https://github.com/ipfs/js-ipfs/tree/master/src/http/api |
@diasdavid done: ipfs/js-ipfs#1124 🎈 |
Thank you @hacdias ! :D Closing this issue then :) |
Version information:
go-ipfs version: 0.4.13
Browser: Firefox, Chrome (reproducible on all)
Type: Bug
Severity: Low
Description:
The X remove buttons on the Files page of the web ui are broken. If you click any of them, then the web UI goes to the front page (because the remove button is a link to "#" and the preventDefault() method is never called on the click event object), and this error appears in the console: "TypeError: t.preventDefault is not a function"
(I just copied it from ipfs/kubo#4269 and updated go-ipfs version to the one I use)
The text was updated successfully, but these errors were encountered: