Ver código fonte

AMBARI-1955. Add ability to turn on/off HUE support. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1469121 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 anos atrás
pai
commit
858a80f3e7

+ 2 - 0
CHANGES.txt

@@ -264,6 +264,8 @@ Trunk (unreleased changes):
 
  IMPROVEMENTS
 
+ AMBARI-1955. Add ability to turn on/off HUE support. (yusaku)
+
  AMBARI-1941. Create a flag to toggle the support for multiple
  HBase Masters. (jaimin)
 

+ 2 - 1
ambari-web/app/config.js

@@ -48,7 +48,8 @@ App.supports = {
   capacitySchedulerUi: false,
   startStopAllServices: false,
   hiveOozieExtraDatabases: false,
-  multipleHBaseMasters: false
+  multipleHBaseMasters: false,
+  hue: false
 };
 
 if (App.enableExperimental) {

+ 1 - 1
ambari-web/app/controllers/wizard.js

@@ -467,7 +467,7 @@ App.WizardController = Em.Controller.extend({
           serviceName: entry.name,
           displayName: displayOrderConfig[i].displayName,
           isDisabled: i === 0,
-          isSelected: true,
+          isSelected: displayOrderConfig[i].isSelected,
           isInstalled: false,
           isHidden: displayOrderConfig[i].isHidden,
           description: entry.comment,

+ 4 - 2
ambari-web/app/data/services.js

@@ -16,6 +16,8 @@
  * limitations under the License.
  */
 
+var App = require('app');
+
 module.exports = [
   {
     serviceName: 'HDFS',
@@ -105,7 +107,7 @@ module.exports = [
     serviceName: 'HUE',
     displayName: 'Hue',
     isDisabled: false,
-    isSelected: true,
-    isHidden: false
+    isSelected: App.supports.hue,
+    isHidden: !App.supports.hue
   }
 ]