Opened 10 years ago
Last modified 8 years ago
#986 review enhancement
Double confirmation needed to delete media
Reported by: | sebomoto | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | graphic design/interface | Keywords: | UX, UI, delete media file |
Cc: | Parent Tickets: |
Description
When deleting a media item you have to first check a checkbox and then click then delete button.
This could be simplified by getting rid of the checkbox. Accidental media deletion should be prevented by the dialogue itself.
Attachments (3)
Change History (12)
comment:1 by , 10 years ago
Priority: | major → minor |
---|
by , 8 years ago
Attachment: | issue_986.patch added |
---|
comment:2 by , 8 years ago
Status: | new → review |
---|
Hi,
I thought it would be good to remove the checkbox while deleting the collection as well, just like for media.
I have attached a patch file for this, and also a screenshot to verify the working.
Thanks,
Vijeth
by , 8 years ago
Attachment: | delete-ptompt-dialogue.png added |
---|
comment:3 by , 8 years ago
Although the checkbox is hidden indeed, i am now getting "The media was not deleted because you didn't check that you were sure." :)
comment:4 by , 8 years ago
Status: | review → accepted |
---|
comment:5 by , 8 years ago
Status: | accepted → review |
---|
Oh I'm extremely sorry I totally forgot about the backend part :|
I think the revised patch should be fine?! I tested it, it gets deleted!
comment:6 by , 8 years ago
Good!
2 things need fixing.
- We have unit tests. They can be run with ./runtests.sh. With the change 1 test is failing -- TestSubmissionBasics.test_delete
- While testing i found another place where this kind of checkbox is used -- removing an item from collection. Could you please fix it there too?
comment:7 by , 8 years ago
Status: | review → accepted |
---|
comment:8 by , 8 years ago
Hi breton,
I'm so sorry for the inconvenience caused - I should have checked the tests.
I have applied the required changes and the test does not fail now! But, some of the tests in test_submission get skipped on my local machine. I don't know if this happened before so, can you check it out?
Thanks!
comment:9 by , 8 years ago
Status: | accepted → review |
---|
Remove checkbox prompt in the dialogue while deleting