Vojtech Szocs has posted comments on this change.

Change subject: [WIP] webadmin: UI plugin dialog API improved
......................................................................


Patch Set 1:

I think the "getLabel: function() { return "Button Label"; }" part of a dialog 
button definition is unnecessarily complex.

This should be simplified like so:

buttons: [
    {
        label: 'Show Alert',
        onClick: function() { alert('Bump!'); }
    },
    {
        label: 'Close Dialog',
        onClick: function() { api.closeDialog('my-dialog'); }
    }
]

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

Gerrit-MessageType: comment
Gerrit-Change-Id: I4654a25bed7122c45d432e3860ed710fa4ca3dd9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vojtech Szocs <vsz...@redhat.com>
Gerrit-Reviewer: Chris Morrissey <cmorr...@netapp.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Einav Cohen <eco...@redhat.com>
Gerrit-Reviewer: Keith Robertson <krobe...@redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com>
Gerrit-Reviewer: Spenser Shumaker <sshum...@redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vsz...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to