Hide Forgot
When adding action buttons via addMenuPlaceActionButton and/or addDetailPlaceActionButton API functions, UI plugins should be able to specify the relative order of the button, as well as whether it should be placed under the "more" (also known as "kebab") menu. Example of controlling button order: api.addMenuPlaceActionButton('VirtualMachine', 'Test Button', { priority: 0 // put this button before all the other buttons }); Example of controlling "more" menu placement: api.addMenuPlaceActionButton('VirtualMachine', 'Test Button', { moreMenu: true });
Updated example on controlling button order (priority renamed to index, according to posted patches): api.addMenuPlaceActionButton('VirtualMachine', 'Test Button', { index: 0 });
Created attachment 1437489 [details] Test UI plugin
Created attachment 1437490 [details] Test UI plugin
Attached test UI plugin to ease BZ verification. Please check plugin code in test-resources/start.html and adapt if necessary. To verify, check that button placement is correct (see attached screenshot).
Verified in ovirt-engine-4.3.2.1-0.1.el7.noarch ovirt-engine-webadmin-portal-4.3.2.1-0.1.el7.noarch Verified with provided test plugin in attachment 1437489 [details] The button placement is correct, the added buttons are placed as can be seen in screenshot in attachment 1437490 [details]
This bugzilla is included in oVirt 4.3.0 release, published on February 4th 2019. Since the problem described in this bug report should be resolved in oVirt 4.3.0 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.