Description of problem: With recent changes in oVirt UI plugin infra [1], there seems to be an issue where main/sub tab action buttons added by UI plugins are not shown at all. [1] https://gerrit.ovirt.org/#/c/60666/ Steps to Reproduce: 1. Write a UI plugin that calls api.addMainTabActionButton() and/or api.addSubTabActionButton() within its UiInit callback. 2. Open WebAdmin UI and switch to the relevant main/sub tab. Actual results: Custom action buttons are not shown. Expected results: Custom action buttons should be shown.
Created attachment 1193066 [details] Test UI plugin
Attached test UI plugin that adds "Click me!" button on "Data Center" main tab.
The fix is trivial and should be backported into 4.0 as well.
Verified in ovirt-engine-webadmin-portal-4.0.4-0.1.el7ev.noarch rhevm-4.0.4-0.1.el7ev.noarch Verification steps: 1. Install Vojta's test UI plugin from attachment 1193066 [details]. 2. Open or reload Webadmin page and go to Data Centers tab. Result: "Click me!" action button is shown on the main tab. See screenshot attached.
Created attachment 1198342 [details] button UI plugin