[Freeipa-devel] [PATCH] 012 Fixed inconsistency in enabling delete buttons

Endi Sukma Dewata edewata at redhat.com
Wed Sep 7 19:06:32 UTC 2011


On 9/7/2011 7:16 AM, Petr Vobornik wrote:
> https://fedorahosted.org/freeipa/ticket/1640
>
> On the HBAC Rules page, where the rules are listed, if no rule is
> selected, the "Delete" button is not enabled, and cannot be clicked on.
> But edit a Rule, and Delete button is enabled in the available sections
> - regardless of, if an object is selected to be deleted or not, or even
> if there is no object to be selected to delete.
>
> One can click on this button...but then - there is no message indicating
> that something should be selected for deletion for this button to do
> anything.
>
> Milestone: 3.0 Core Effort Backlog

One issue, in HBAC/sudo rules details page if the category is changed 
from 'all' to 'specific', the Delete button will be enabled although 
there is no entries selected.

See the set_enabled() in IPA.association_table_widget. I think if the 
parameter is true it should enable only the Add button. If the parameter 
is false it disable both Add and Delete button and call unselect_all().

-- 
Endi S. Dewata




More information about the Freeipa-devel mailing list