-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix: Updated logic for funds links #3617
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Part 2 looks good. Part 1, I the 'available funds' link is still disabled if you're not a member of the colony. I have commented where I believe the relevant logic is.
const allUserRoles = useTransformer(getAllUserRoles, [colony, walletAddress]); | ||
|
||
const canMoveFunds = !!username && !ethereal && canFund(allUserRoles); | ||
const canMoveFunds = !!username && !ethereal; | ||
|
||
const { | ||
colonyAddress, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 60 below canMoveFunds ? ...
is the logic that needs to be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it! Thanks Will.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with Will, the link disabling / enabling works fine, however the link to the Manage Funds page does not.
Here's with a logged out user (it should work for that case as well)
Note that the incoming funds section works correctly, and even point to the same location. So you can just copy/paste it's logic
While after being logged in, it works correctly
It should be working now. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go!
d84f995
to
e57ac6e
Compare
Description
This PR fixes the "Available Funds" link that should take the user to the funds page and be enabled regardless of permissions but it is currently inactive.
Additionally, once you go inside the funds page, the Move funds, Mint Tokens, Manage Tokens links should all be active depending on the following:
Changes 🏗
TODO
Resolves #3550