webui: hide otp fields based on token type

- uses hide empty feature

https://fedorahosted.org/freeipa/ticket/4402

Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
Petr Vobornik 2014-07-30 10:09:12 +02:00
parent 7e7fe57fc9
commit 854bc42913

View File

@ -202,13 +202,18 @@ return {
'ipatokenotpdigits',
{
name: 'ipatokentotpclockoffset',
measurement_unit: 'seconds'
measurement_unit: 'seconds',
hidden_if_empty: true
},
{
name: 'ipatokentotptimestep',
measurement_unit: 'seconds'
measurement_unit: 'seconds',
hidden_if_empty: true
},
'ipatokenhotpcounter'
{
name: 'ipatokenhotpcounter',
hidden_if_empty: true
}
]
}
]