#3897 closed defect (bug) (fixed)
"Friendship requested" button should not be disabled
Reported by: | r-a-y | Owned by: | |
---|---|---|---|
Milestone: | 1.6 | Priority: | normal |
Severity: | normal | Version: | 1.5.4 |
Component: | Templates | Keywords: | dev-feedback has-patch |
Cc: | david@… |
Description
When a displayed user's friendship is pending, the logged-in user should be able to click on the "Friendship requested" button to manage the request.
However, due to the JS here:
https://buddypress.trac.wordpress.org/browser/tags/1.5.2/bp-themes/bp-default/_inc/global.js#L844
The link is disabled.
One way to remedy this is to add a CSS class to the "pending" friendship button called "no-disable". Then in the JS, use hasClass to check if this CSS exists. If it does, let the link through.
Attachments (1)
Change History (10)
#2
@
13 years ago
Default link goes to /members/USERNAME/friends/requests/.
But since the logged-in user can't click on the link, they have to somehow find their way to the friendship requests page.
It's a small UX issue.
#3
@
13 years ago
USERNAME's *sent* friendship requests don't show up at /members/USERNAME/friends/requests/ - only the requests he has *received*. So there's nothing really to manage.
Maybe this shouldn't be a link at all?
#4
@
13 years ago
- Milestone changed from Awaiting Review to 1.6
- Version changed from 1.2 to 1.5.4
Probably shouldn't be a button. If it is, it should be clickable and do something. Maybe "Unfriend" or "Undo" and put them back in pending status?
#5
@
13 years ago
- Cc david@… added
Being able to cancel requests seems like a nice feature. Maybe the /members/USERNAME/friends/requests/ page could show incoming and outgoing requests.
Here's a patch that makes the "Friendship Requested" pseudo-button into a "Cancel Friendship Request" button.
When you say "manage the request", what do you mean you think should happen? Where does the link go to in this situation?