Closed Bug 665114 Opened 13 years ago Closed 13 years ago

Modal warning message for file deletion wrongly includes parent directories in its message

Categories

(addons.mozilla.org Graveyard :: Add-on Builder, defect, P2)

Tracking

(Not tracked)

VERIFIED FIXED
Builder 0.9.7

People

(Reporter: stephend, Assigned: zalun)

References

Details

Attachments

(1 file)

This is scary -- even though there isn't true data loss, the warning message is spurious.

STR:

1. Under Data, create a subfolder with another subfolder, like so:
Data
--> Foo/
----> Bar/
-------> Baz.js
2. Now, try to delete "Bar", and the prompt is "Are you sure you want to remove Foo/Bar and all its files?"

Expected Results:

It should only *say* "Are you sure you want to remove Bar and all its files?"
Additionally, when deleting directories that have no children, the modal message reads: Are you sure you want to remove "" <--- the directory name is not show, just a blank quoted string.
Priority: -- → P2
@stephend but it is the Foo/Bar which will be deleted

--> Foo/
----> Bar/
-------> Baz.js
--> Bar/

Then mesage "Are you sure you want to remove Bar and all its files?" would be ambiguous
Perhaps wrap the "Foo/Bar" bit in <b> tags so that you can kinda see that it runs together?
No Stephen is right, when I choose to delete only subdirectory Bar, it should read "Bar and all or its files" and only delete Bar and anything Bar contains, Foo is the parent directory and has nothing to do with this request.
I agree with @zalun that it could be ambiguous and confusing. Perhaps if the targeted subdirectory and its files were highlighted while the confirmation modal was displayed, to indicate explicitly which files and directories would be affected, then the ambiguity would be eliminated.
I just don't agree, take a look at any confirmation dialog in the OS, it just lists either the file or directory name when you try to delete. It is really odd to mention all the other parent directories that have nothing to do with it.

I would be up for having it say "Are you sure you want to remove Bar and all its files?" *and* do as rfreebern says and highlight the file or directory in question. Showing all the other directories above is not what a user is used to so I would like not to do that.
Severity: blocker → major
Assignee: nobody → zaloon
Depends on: 665228
Target Milestone: Builder 0.9.6 → Builder 0.9.7
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Verified FIXED.
Status: RESOLVED → VERIFIED
Flags: in-testsuite?
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: