Hide Forgot
According to BZ 1215727 WebAdmin now supports global alerts shown in top center part of the GUI. The global alert infra supports showing different types of alerts: 'Danger' alert http://imgur.com/xcZhcaK 'Warning' alert http://imgur.com/Jgdl6vA 'Success' alert http://imgur.com/U9EGejw 'Info' alert http://imgur.com/llLVR9d It would be nice to expose this capability to UI plugins as well.
Vojtech - do we need it for the dashboards? If not, we'll probably postpone it.
(In reply to Oved Ourfali from comment #1) > Vojtech - do we need it for the dashboards? Unless we'd like Dashboard UI plugin to raise such (red/yellow/green/etc.) global alert boxes, we don't need it. > If not, we'll probably postpone it. Sounds good.
On the other hand, implementing this is trivial, ETA 1 day max. Question is, if we really need/want it.
(In reply to vszocs from comment #3) > Question is, if we really need/want it. I think it's very useful for oVirt Dashboard - display error message when DWH is not properly configured, or when other kind of error occurs when fetching dashboard data.
Created attachment 1141877 [details] Alert test UI plugin Attaching sample UI plugin to test the newly introduced `api.showAlert()` function. Just extract files into $PREFIX/share/ovirt-engine/ui-plugins (where $PREFIX is usually /usr) and reload WebAdmin in your browser. Engine restart is not necessary.
Change already landed in ovirt-engine master, I think we should flag this for 4.0 (currently flagged for 4.1).
Verified in build 4.0.0-18: rhevm-4.0.0.6-0.1.el7ev.noarch ovirt-engine-webadmin-portal-4.0.0.6-0.1.el7ev.noarch For verification, I used Vojta's UI test plugin (thanks for it), which I extended to display all the alert types. Find the plugin attached. All four alert types danger/warning/success/info are displayed, closing via 'X' button works, as well as the auto-hide option. Screenshot attached.
Created attachment 1170325 [details] Alert test UI plugin - verification
Created attachment 1170326 [details] screen: alerts via UI plugin
oVirt 4.0.0 has been released, closing current release.