Daniel Erez has posted comments on this change. Change subject: Introducing ShellBox UI plugin ......................................................................
Patch Set 1: (2 inline comments) * Regarding RPM - will push another patch for it... * Regarding VMs - since the IP field is required, I guess we should wait for the integration of restapi-definition entities into UI plugins infrastructure (instead of the current support for ID/Name fields only)? BTW, thanks again for the plugins infrastructure Vojtech! .................................................... File shellbox-plugin/shellbox-files/start.html Line 11: Line 12: // Add 'Shell Box' button (+ context menu) to 'Hosts' main-tab Line 13: api.addMainTabActionButton('Host', 'Shell Box', { Line 14: onClick : function() { Line 15: window.open(getShellBoxUrl(arguments), '_blank'); Does showDialog API support opening a new browser tab rather than a new window? Line 16: }, Line 17: isEnabled : function() { Line 18: // The button is enabled only when a single host is selected Line 19: return arguments.length == 1; Line 19: return arguments.length == 1; Line 20: }, Line 21: isAccessible : function() { Line 22: // The button is always visible Line 23: return true; Yeah, added it just for a quick disabling ability... Line 24: } Line 25: }); Line 26: }, Line 27: HostSelectionChange : function() { -- To view, visit http://gerrit.ovirt.org/11166 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I96c234e095e12b276ea6811274e17751de1f0b88 Gerrit-PatchSet: 1 Gerrit-Project: samples-uiplugins Gerrit-Branch: master Gerrit-Owner: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Ayal Baron <aba...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Einav Cohen <eco...@redhat.com> Gerrit-Reviewer: Itamar Heim <ih...@redhat.com> Gerrit-Reviewer: Oved Ourfali <oourf...@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