Vojtech Szocs has submitted this change and it was merged.
Change subject: webadmin: UI plugin API - revealPlace
......................................................................
webadmin: UI plugin API - revealPlace
This patch adds new UI plugin API function ('revealPlace')
that can be used to reveal desired application place, e.g.
main or sub tab. An application place denotes a logical
state of the web application, represented as '#placeToken'
in application's URL, for example:
WebAdmin.html#vms // 'VM' main tab place
WebAdmin.html#vms-general // 'VM General' sub tab place
revealPlace function works for both standard (built-in) and
custom (UI-plugin-contributed) places, assuming that given
place to reveal is available at time the function is called.
(Otherwise, WebAdmin will transition to its default place,
currently set to 'VM' main tab.)
API signature:
revealPlace(placeToken)
Example usage:
// switch to 'Hosts' main tab
api.revealPlace('hosts');
// add custom main tab and switch to it
api.addMainTab('Test', 'test', 'plugin/TestPlugin/tab.html');
api.revealPlace('test');
Note: setting place parameters, such as:
WebAdmin.html#placeToken;paramName=paramValue
is not supported (yet) since there currently aren't
any application places utilizing such parameters.
Change-Id: Ib4ae30f62c5bcd6793e19c8be6806f32bf68eee1
Bug-Url:
https://bugzilla.redhat.com/1168334
Signed-off-by: Vojtech Szocs <vszocs(a)redhat.com>
---
M
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/PluginManager.java
M
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/api/PluginUiFunctions.java
2 files changed, 24 insertions(+), 1 deletion(-)
Approvals:
Alexander Wels: Looks good to me, approved
Vojtech Szocs: Verified
--
To view, visit
https://gerrit.ovirt.org/40404
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib4ae30f62c5bcd6793e19c8be6806f32bf68eee1
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vojtech Szocs <vszocs(a)redhat.com>
Gerrit-Reviewer: Alexander Wels <awels(a)redhat.com>
Gerrit-Reviewer: Einav Cohen <ecohen(a)redhat.com>
Gerrit-Reviewer: Ramesh N <rnachimu(a)redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org