Vojtech Szocs has uploaded a new change for review.

Change subject: userportal: Enable context-sensitive help in dialogs
......................................................................

userportal: Enable context-sensitive help in dialogs

This patch enables context-sensitive help feature for UserPortal dialogs.

UserPortalConfigurator will fetch "UserPortalDocumentationPath.csv"
file from following location:
http(s)://<host>:<port>/<DocsURL>/<locale>/UserPortalDocumentationPath.csv

This is similar to WebAdmin's "DocumentationPath.csv" file location, but
with different file name for UserPortal.

After receiving CSV file content, UserPortalConfigurator.eventRaised()
method method will call DocumentationPathTranslator.init() to initialize
modelHashName -> contextSensitiveHelp mappings.

When the CSV file cannot be retrieved, application will simply hide the
context-sensitive help button within the given dialog. See
AbstractModelBoundPopupPresenterWidget.updateHashName() method
for details on logic that updates help button availability.

This patch also adds "HTTP response OK" check in Configurator.fetchFile()
method.

Change-Id: I8c84a6fb4875049669b18753f9246cfe3aaefd8d
Signed-off-by: Vojtech Szocs <vsz...@redhat.com>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/Configurator.java
M 
frontend/webadmin/modules/userportal-gwtp/src/main/java/org/ovirt/engine/ui/userportal/uicommon/UserPortalConfigurator.java
M 
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/uicommon/WebAdminConfigurator.java
3 files changed, 23 insertions(+), 15 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/27/5327/1
--
To view, visit http://gerrit.ovirt.org/5327
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8c84a6fb4875049669b18753f9246cfe3aaefd8d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vojtech Szocs <vsz...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to