浏览代码

YARN-8419. [UI2] User cannot submit a new service as submit button is always disabled. Contributed by Suma Shivaprasad.

Sunil G 7 年之前
父节点
当前提交
b3612dd90c

+ 1 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/deploy-service.js

@@ -167,7 +167,7 @@ export default Ember.Component.extend({
     if (this.get('isLoading')) {
     if (this.get('isLoading')) {
       return false;
       return false;
     }
     }
-    if (this.get('isUserNameGiven')) {
+    if (this.get('isSecurityNotEnabled') && this.get('isUserNameGiven')) {
       return false;
       return false;
     }
     }
     if (this.get('isStandardViewType')) {
     if (this.get('isStandardViewType')) {