From ca4cc7abe1cad87cd1e80702aedaca43cb6660d1 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Jun 08 2020 05:29:36 +0000 Subject: WebUI: Add units to some DNS zone and IPA config fields Add also tooltips to ipasearchrecordslimit and ipasearchtimelimit to clarify the special value 0/-1. Reviewed-By: Alexander Bokovoy --- diff --git a/install/ui/src/freeipa/dns.js b/install/ui/src/freeipa/dns.js index ab1e59f..b69754b 100644 --- a/install/ui/src/freeipa/dns.js +++ b/install/ui/src/freeipa/dns.js @@ -159,12 +159,30 @@ return { }, 'idnssoarname', 'idnssoaserial', - 'idnssoarefresh', - 'idnssoaretry', - 'idnssoaexpire', - 'idnssoaminimum', - 'dnsdefaultttl', - 'dnsttl', + { + name: 'idnssoarefresh', + measurement_unit: 'seconds' + }, + { + name: 'idnssoaretry', + measurement_unit: 'seconds' + }, + { + name: 'idnssoaexpire', + measurement_unit: 'seconds' + }, + { + name: 'idnssoaminimum', + measurement_unit: 'seconds' + }, + { + name: 'dnsdefaultttl', + measurement_unit: 'seconds' + }, + { + name: 'dnsttl', + measurement_unit: 'seconds' + }, { $type: 'radio', name: 'idnsallowdynupdate', diff --git a/install/ui/src/freeipa/serverconfig.js b/install/ui/src/freeipa/serverconfig.js index bdf279c..bb26b10 100644 --- a/install/ui/src/freeipa/serverconfig.js +++ b/install/ui/src/freeipa/serverconfig.js @@ -45,8 +45,15 @@ return { name: 'search', label: '@i18n:objects.config.search', fields: [ - 'ipasearchrecordslimit', - 'ipasearchtimelimit' + { + name: 'ipasearchrecordslimit', + tooltip: '@mc-opt:config_mod:ipasearchtimelimit:doc' + }, + { + name: 'ipasearchtimelimit', + measurement_unit: 'seconds', + tooltip: '@mc-opt:config_mod:ipasearchtimelimit:doc' + } ] }, {