Change in ovirt-engine[master]: webadmin: UI plugin API - showAlert
vszocs at redhat.com
vszocs at redhat.com
Wed Apr 6 14:53:34 UTC 2016
Vojtech Szocs has submitted this change and it was merged.
Change subject: webadmin: UI plugin API - showAlert
......................................................................
webadmin: UI plugin API - showAlert
This patch adds new UI plugin API function ('showAlert')
that can be used to show application-wide alert messages.
API signature:
showAlert(alertTypeName, message, options)
Possible 'alertTypeName' values (default is 'info'):
danger
warning
success
info
The 'options' parameter is, by convention, optional and
used to group additional alert settings:
autoHideMs [number]
Number of milliseconds after which the alert should be
automatically closed. A negative value is functionally
equivalent to 0 (auto-hide disabled).
Example usage:
api.showAlert('success', 'Success alert message');
api.showAlert('danger', 'Error message with auto-hide', {
autoHideMs: 3000
});
Change-Id: Ib4462f0d10bfdded2994cdccd3f0cc2aec9c2252
Bug-Url: https://bugzilla.redhat.com/1285432
Signed-off-by: Vojtech Szocs <vszocs at redhat.com>
---
M frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/panel/AlertPanel.java
M frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/PluginManager.java
A frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/api/AlertOptions.java
M frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/api/PluginUiFunctions.java
4 files changed, 63 insertions(+), 1 deletion(-)
Approvals:
Alexander Wels: Looks good to me, approved
Jenkins CI: Passed CI tests
Vojtech Szocs: Verified
--
To view, visit https://gerrit.ovirt.org/55504
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib4462f0d10bfdded2994cdccd3f0cc2aec9c2252
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vojtech Szocs <vszocs at redhat.com>
Gerrit-Reviewer: Alexander Wels <awels at redhat.com>
Gerrit-Reviewer: Greg Sheremeta <gshereme at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Oved Ourfali <oourfali at redhat.com>
Gerrit-Reviewer: Scott Dickerson <sdickers at redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
More information about the Engine-commits
mailing list