diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/ozone.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/ozone.js index f0d4011456c..0d7a2860157 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/ozone.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/ozone.js @@ -230,6 +230,16 @@ }); angular.module('ozone').component('commonTools', { - templateUrl: '/static/templates/tools.html' + templateUrl: '/static/templates/tools.html', + controller: function ($http) { + var ctrl = this; + ctrl.docs = false; + $http.head("/docs/index.html") + .then(function (result) { + ctrl.docs = true; + },function(){ + ctrl.docs = false; + }); + } }); })(); diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/templates/tools.html b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/templates/tools.html index cd11021a570..4ff92e39857 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/templates/tools.html +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/templates/tools.html @@ -34,5 +34,6 @@ aria-hidden="true"> +