[MainView] Need a way to dynamically alter the current global actions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
Undecided
|
Unassigned | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The MainView current exposes an actions property (behind the scene aliased to actionManager.
There is currently no ways (besides using Pages) to dynamically alter and access those actions at runtime.
The context of the requests and the associated requests come from WebApps where depending on what's being present on a given supported web application (think GMail or GoogleDocs) actions are dynamically being added (as the DOM is being parsed) at runtime. The use case is very dynamic at its core.
The webbrowser-app will be used as a container for WebApps but it uses a MainView (it used to use a plain ActionManager) which does not expose ways to dynamically tweak actions.
In this very context, a simple solution would be to add addaction/
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Tim Peeters: Pending requested
-
Diff: 33 lines (+12/-0)2 files modifiedcomponents.api (+1/-0)
modules/Ubuntu/Components/MainView.qml (+11/-0)
summary: |
- [MainView] Need a way to dyanmically alter the current global actions + [MainView] Need a way to dynamically alter the current global actions |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
Is there someone in the sdk team who is more involved with webapps than the others?