summaryrefslogtreecommitdiffstats
path: root/install/ui/dns.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-07-20 11:43:41 -0400
committerAdam Young <ayoung@redhat.com>2011-07-20 13:40:01 -0400
commitbc4e97e191f68cdf16e0ef76b218c1f602835c2c (patch)
treec2eb01da980128205ff9ee09a4a455e08fcd6480 /install/ui/dns.js
parent7ce57e38c43b4a1f3e422a644760f94043058feb (diff)
downloadfreeipa-bc4e97e191f68cdf16e0ef76b218c1f602835c2c.tar.gz
freeipa-bc4e97e191f68cdf16e0ef76b218c1f602835c2c.tar.xz
freeipa-bc4e97e191f68cdf16e0ef76b218c1f602835c2c.zip
no dns
Remove all DNS entities if the DNS server is not installed. Removes it from the navigation as well. https://fedorahosted.org/freeipa/ticket/1498 move created count to last thing in the funciton.
Diffstat (limited to 'install/ui/dns.js')
-rw-r--r--install/ui/dns.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/install/ui/dns.js b/install/ui/dns.js
index 740192653..58aeaddff 100644
--- a/install/ui/dns.js
+++ b/install/ui/dns.js
@@ -117,6 +117,11 @@ IPA.dns_record_search_load = function (result) {
};
IPA.entity_factories.dnsrecord = function() {
+
+ if (!IPA.dns_enabled) {
+ throw "DNS not enabled on server";
+ }
+
return IPA.entity_builder().
entity('dnsrecord').
containing_entity('dnszone').