Opened 4 years ago
Closed 4 years ago
#8305 closed enhancement (fixed)
Add regular delete confirmation screen for XProfile field groups
Reported by: | oztaser | Owned by: | slaFFik |
---|---|---|---|
Milestone: | 7.0.0 | Priority: | normal |
Severity: | normal | Version: | 2.3.0 |
Component: | Administration | Keywords: | has-patch commit |
Cc: |
Description
It will be good to add a js confirm to the delete link because users can accidentally click.
Attachments (4)
Change History (12)
#1
@
4 years ago
- Component changed from Extended Profile to Administration
- Keywords has-patch reporter-feedback added
- Milestone changed from Awaiting Review to 7.0.0
- Owner set to slaFFik
- Version set to 2.3.0
#2
@
4 years ago
- Keywords reporter-feedback removed
Hi @imath,
Thanks for your suggestion. I am gonna work on it.
#3
@
4 years ago
- Summary changed from Add js confirm to XProfile field group delete link to Add regular confirmation screen for XProfile field groups
I added a regular confirmation screen for field groups and added the delete link into the edit field group page.
#4
@
4 years ago
- Summary changed from Add regular confirmation screen for XProfile field groups to Add regular delete confirmation screen for XProfile field groups
#5
@
4 years ago
Hi @oztaser
I just had a look at your patch and I've tested it. It's a very interesting work. Thanks a lot.
- Suggestion:
// Let's use strict comparison at line 90 like: in_array( $mode, array( 'delete_group', 'do_delete_group' ), true )
- The Base group is required and not deletable
Into the edit group page, you should only include the delete link if the edited group is not the Base one.
- What about confirming fields deletion?
I'm wondering if we should also add this confirmation step for fields. Would it be too annoying at usage?
#6
@
4 years ago
Hi again,
I've updated the patch for your first two suggestions.
What about confirming fields deletion?
I believe accidentally losing data is more annoying than confirmation screen so I think confirmation is always good for user experience.
I also can work on it if you think we should add the screen.
Hi @oztaser
Thanks for this new contribution, I agree 💯. But just as I've commented on your ticket about the activity delete link, could we use a regular confirmation screen instead of the JavaScript confirm ?
Also, what about adding the delete link into the edit xProfile page, just like you suggested for the activity ?