From 5f239aebca25635bf04ba7241511cedbef6d2d65 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Fri, 5 Jun 2020 23:54:19 +0200 Subject: [PATCH] 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 --- install/ui/src/freeipa/dns.js | 30 ++++++++++++++++++++------ install/ui/src/freeipa/serverconfig.js | 11 ++++++++-- 2 files changed, 33 insertions(+), 8 deletions(-) diff --git a/install/ui/src/freeipa/dns.js b/install/ui/src/freeipa/dns.js index ab1e59fc1..b69754b95 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 bdf279cf6..bb26b1073 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' + } ] }, {