4dbc692 WebUI: Fix new test initialization on "HBAC Test" page

3 files Authored by stsymbal 11 months ago , Committed by abiagion 11 months ago ,
    WebUI: Fix new test initialization on "HBAC Test" page
    
    "New Test" action cleared only information about selected options but kept
    radio buttons checked. It confused users and caused an error on validation step.
    
    New behaviour is:
    - tables forget all selected values after "New Test" click;
    - first table record is checked initially in case the option is mandatory;
    - all records is unchecked initially in case the option is not mandatory.
    
    Ticket: https://pagure.io/freeipa/issue/8031
    
    Signed-off-by: Serhii Tsymbaliuk <stsymbal@redhat.com>
    Reviewed-By: Armando Neto <abiagion@redhat.com>