Alexander Wels has posted comments on this change.

Change subject: webadmin: Simplified failure handling code in Frontend
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.ovirt.org/#/c/27804/3/frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/Frontend.java
File 
frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/Frontend.java:

Line 912:         // 'runActionExecutionFailed' invokes an error pop-up 
displaying, therefore calling 'failureEventHandler' is
Line 913:         // only needed for canDoAction failure
Line 914:         if (failedOnCanDoAction && (getEventsHandler() != null)
Line 915:                 && 
(getEventsHandler().isRaiseErrorModalPanel(actionType, result.getFault()))) {
Line 916:             if (result.getCanDoActionMessages().isEmpty()) {
Doesn't there need to be a translation call in the case of 
getCanDoActionMessages() containing a single message? This code drops it right 
through to the failure event handler. The previous code would translate it 
first.
Line 917:                 // TODO: Externalize to a better location, should 
support translation via
Line 918:                 // resource bundle file.
Line 919:                 failureEventHandler(result.getDescription(), "No 
Message"); //$NON-NLS-1$
Line 920:             } else {


-- 
To view, visit http://gerrit.ovirt.org/27804
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I19a0fc10841c9d400ad381f5f9f5fbaaf55fe871
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Lior Vernia <lver...@redhat.com>
Gerrit-Reviewer: Alexander Wels <aw...@redhat.com>
Gerrit-Reviewer: Alona Kaplan <alkap...@redhat.com>
Gerrit-Reviewer: Lior Vernia <lver...@redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vsz...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to