summaryrefslogtreecommitdiffstats
path: root/install/ui/dns.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-05-04 14:02:01 +0200
committerPetr Vobornik <pvoborni@redhat.com>2012-05-15 12:51:57 +0200
commit69877296dc9da05e89a8f2585165becc7bbd9c99 (patch)
tree135d3b5c8d44d610868e79dab449763d6eae5681 /install/ui/dns.js
parentabbecf450f367022a2848dc55c4e809e8d94d344 (diff)
downloadfreeipa-69877296dc9da05e89a8f2585165becc7bbd9c99.tar.gz
freeipa-69877296dc9da05e89a8f2585165becc7bbd9c99.tar.xz
freeipa-69877296dc9da05e89a8f2585165becc7bbd9c99.zip
Host page fixed to work with disabled DNS support
When DNS support was disabled there were following errors in Web UI: 1) Host details page was not filled with data 2) Host adder dialog was broken -> unusable 3) DNS tab was displayed in navigation The bugs were fixed by: 1) Was caused by entity_link_widget. The widget was modified to do not show link if other_entity (in this case dnsrecord) is not present. 2) Was caused by host_fqdn_widget. The widget is unusable becouse withou DNS support it doesn't have access to DNS zone entity. The section with this widget was removed. Also IP address field was removed because it shouln't be used without DNS support. New 'fqdn' text box was added for specifying hostname. 3) New DNS config entity was initialized but it wasn't shown because it caused some JavaScript error. The dnsconfig's init method was modified to throw expected exception. Now no dns entity is initialized and therefore DNS tab in navigation is not displayed. https://fedorahosted.org/freeipa/ticket/2728
Diffstat (limited to 'install/ui/dns.js')
-rw-r--r--install/ui/dns.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/install/ui/dns.js b/install/ui/dns.js
index 7b436c720..83934516a 100644
--- a/install/ui/dns.js
+++ b/install/ui/dns.js
@@ -33,6 +33,13 @@ IPA.dns.config_entity = function(spec) {
var that = IPA.entity(spec);
that.init = function() {
+
+ if (!IPA.dns_enabled) {
+ throw {
+ expected: true
+ };
+ }
+
that.entity_init();
that.builder.details_facet({