Description of problem: As a user, I only want to see buttons if certain condition exist (Button Filtering)
Please assess the impact of this issue and update the severity accordingly. Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition. If it's something like a tracker bug where it doesn't matter, please set the severity to Low.
This is a function of the API (as it will only return the buttons that are needed). However, in discussion of this, we wanted to add a 3rd state of disabled. Here is the PR for that - https://github.com/ManageIQ/manageiq-ui-service/pull/1012
Aziza, please work with Shveta on this one please.
Assigning it to Anurag as it is API related.
Created attachment 1359689 [details] Screenshot Hello Team, This feature is working fine, verified on version: Version: 5.9.0.9.20171115202245_7429f75. Thanks for working on this enhancement feature :) Thanks -Anurag Sinha
Steps used for verification: 1.Create a custom button (Unassigned Button) for services 2.Provide an Enablement expression for disabling the custom button. (e.g: COUNT OF Service.VMs > 5000 ) 3.Add "Disabled Button Text" 4.Click on save 5.Login on to SSUI page 6.Goto Service and check the button is disabled 7.Hover over button to check the disable text. Hence the changing the state from on_qa to verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0380