folders interface questions
Chuck Hagenbuch
chuck@horde.org
Tue, 23 Jan 2001 21:36:14 -0500
Right now, folders.php allows the user to attempt 2 things that we shouldn't
allow:
1. Deleting a mailbox that has children
2. Creating a subfolder to a mailbox that can't have children.
Both of these are testable conditions - mailboxes that can't have children will
be marked with LATT_NOINFERIORS, and so we can safely allow subfolder creation
if that flag isn't there. And we have a hasChildren() method already.
The question is how to enforce them. I see a few possibilities, and I'm hoping
that people can improve on them or suggest others:
1. We move delete and create out of the actions menu, and put them as
links/buttons next to the folders on which they are allowed. Major concern:
cluttering the UI (though, the folders screen does have a lot of unused space
right now), and inconsistency between action menu actions and link/button
actions.
2. We put the checks into the existing javascript logic. Major concern:
information is being hidden from the user, but acted upon in a way that impacts
the user directly (in other words, if we're going to do something about the
information we have, we should probably make it apparent to the user in some
way).
Other ideas/improvements on these?
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
Entropy. It's what's for dinner.