[ovirt-devel] alerts in webadmin UI

Vojtech Szocs vszocs at redhat.com
Tue Nov 28 18:31:07 UTC 2017


On Tue, Nov 28, 2017 at 3:24 AM, Greg Sheremeta <gshereme at redhat.com> wrote:

>
>
> On Mon, Nov 27, 2017 at 9:22 PM, Greg Sheremeta <gshereme at redhat.com>
> wrote:
>
>> Hi,
>>
>> If you create new "alert" messages in the webadmin UI, or you are working
>> near some code that has an alert, please use the PatternFly alert widget
>> instead of rendering a plain (or red) label.
>>
>> Example:
>> http://www.patternfly.org/pattern-library/communication/inli
>> ne-notifications/
>>
>> Widget:
>>
>
> Oops, wrong link. Should be:
> https://github.com/oVirt/ovirt-engine/blob/master/
> frontend/webadmin/modules/gwt-common/src/main/java/org/
> ovirt/engine/ui/common/widget/panel/AlertPanel.java
>

You can still use ​AlertManager in case you'd like to display
application-wide alert messages, rendered in top center part of the page,
with optional auto-hide behavior. UI runtime errors, for example, are
rendered this way.

Or use AlertPanel directly if the message is local to the given UI
component, ideally from within ui.xml file, for example:
https://github.com/oVirt/ovirt-engine/blob/master/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/MainEngineErrataView.ui.xml


>
>
>>
>>
>> So instead of this:
>>
>> [image: Inline image 2]
>>
>>
>>
>> Do this:
>> [image: Inline image 1]
>>
>>
>> Thanks!
>>
>> Best wishes,
>> Greg
>>
>> --
>>
>> GREG SHEREMETA
>>
>> SENIOR SOFTWARE ENGINEER - TEAM LEAD - RHV UX
>>
>> Red Hat NA
>>
>> <https://www.redhat.com/>
>>
>> gshereme at redhat.com    IRC: gshereme
>> <https://red.ht/sig>
>>
>
>
>
> _______________________________________________
> Devel mailing list
> Devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20171128/f52e094c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Selection_307.png
Type: image/png
Size: 12092 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20171128/f52e094c/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 22854 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20171128/f52e094c/attachment-0003.png>


More information about the Devel mailing list