#17516 closed defect (bug) (wontfix)
Add Favorite Actions to Admin Bar
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.2 |
Component: | Toolbar | Keywords: | has-patch |
Focuses: | Cc: |
Description
With the new UI upgrade, the favorite_actions() method was removed from the main UI. After a brief discussion with Westi, it made sense to put the functionality back in as part of the adminbar.
The attached patch does that using the favorite_actions() method (which can now return the filtered list of favorite_actions as an array). We should eat our own dog food.
Attachments (6)
Change History (16)
#1
@
14 years ago
- Component changed from General to Administration
- Summary changed from Add Favorite Actions to Quick Bar to Add Favorite Actions to Admin Bar
I don't think simply moving the favorite actions to the admin bar is a good idea.
For example, there are two links to 'Comments' now.
Related: #17499
#2
@
14 years ago
Per IRC discussion - cap check should go, as each favorite action has its own cap check. If the user doesn't have caps for any action, then the menu shouldn't be added.
I think we should cripple favorite_actions() to only return actions that were added via a filter. That way we offer some backwards compatibility without offering duplication. Otherwise, the various actions under "Add New" replace the core links, as well as the screen-dependent "Edit X" being added in #17499.
#3
@
14 years ago
Acknowledged. I'll put some cycles into that tonight or tomorrow. Should be simple.
@
14 years ago
Take 3. Lots of red. Wheeee! New patch allows for a string or an array to be passed. The array can have an optional cap. Unit test included as next attachment.
#4
@
14 years ago
- Cc daryl.koopersmith@… added
- Version set to 3.2
Koop should look at this as part of admin bar redux he's working on now for 3.3, no? Probably would need a patch refresh to fit in?
#7
@
12 years ago
- Component changed from Administration to Toolbar
- Keywords has-patch added; close removed
- Milestone Awaiting Review deleted
Screenshot of new menu