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(a)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(a)redhat.com>
Gerrit-Reviewer: Alexander Wels <awels(a)redhat.com>
Gerrit-Reviewer: Greg Sheremeta <gshereme(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Oved Ourfali <oourfali(a)redhat.com>
Gerrit-Reviewer: Scott Dickerson <sdickers(a)redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>