summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-07-30 10:09:12 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-09-11 17:55:17 +0200
commit854bc42913f663dce1f2e0fbb44a670a2812d87c (patch)
tree55b17bb6744b5cec81d0cbea9015ec1174e258ab
parent7e7fe57fc9098e81ce90f4d56b1a3154abfa6123 (diff)
downloadfreeipa-854bc42913f663dce1f2e0fbb44a670a2812d87c.zip
freeipa-854bc42913f663dce1f2e0fbb44a670a2812d87c.tar.gz
freeipa-854bc42913f663dce1f2e0fbb44a670a2812d87c.tar.xz
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>
-rw-r--r--install/ui/src/freeipa/otptoken.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/install/ui/src/freeipa/otptoken.js b/install/ui/src/freeipa/otptoken.js
index e19c7e1..d5afd25 100644
--- a/install/ui/src/freeipa/otptoken.js
+++ b/install/ui/src/freeipa/otptoken.js
@@ -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
+ }
]
}
]