You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sa...@apache.org on 2017/03/15 20:58:46 UTC
ambari git commit: AMBARI-20363 - After clearing the content of Users
in Yarn Queue Manager,
it still shows the user in effective administrators (Anita Jebaraj via
sangeetar)
Repository: ambari
Updated Branches:
refs/heads/trunk dca46a9a5 -> f6e88e087
AMBARI-20363 - After clearing the content of Users in Yarn Queue Manager, it still shows the user in effective administrators (Anita Jebaraj via sangeetar)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f6e88e08
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f6e88e08
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f6e88e08
Branch: refs/heads/trunk
Commit: f6e88e0871d429b5e5b8530d545578ee96025a99
Parents: dca46a9
Author: Sangeeta Ravindran <sa...@apache.org>
Authored: Wed Mar 15 13:58:24 2017 -0700
Committer: Sangeeta Ravindran <sa...@apache.org>
Committed: Wed Mar 15 13:58:24 2017 -0700
----------------------------------------------------------------------
.../src/main/resources/ui/app/components/userGroupInput.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e88e08/contrib/views/capacity-scheduler/src/main/resources/ui/app/components/userGroupInput.js
----------------------------------------------------------------------
diff --git a/contrib/views/capacity-scheduler/src/main/resources/ui/app/components/userGroupInput.js b/contrib/views/capacity-scheduler/src/main/resources/ui/app/components/userGroupInput.js
index 513031c..17dd05b 100644
--- a/contrib/views/capacity-scheduler/src/main/resources/ui/app/components/userGroupInput.js
+++ b/contrib/views/capacity-scheduler/src/main/resources/ui/app/components/userGroupInput.js
@@ -24,7 +24,7 @@ App.UserGroupInputComponent = Em.Component.extend({
ug:'',
users:function (key, value, previousValue) {
- if (value) {
+ if (value || value === "") {
this.set('ug',[value,this.get('groups')].join(' '));
}
var ug = this.get('ug');
@@ -32,7 +32,7 @@ App.UserGroupInputComponent = Em.Component.extend({
}.property('ug'),
groups:function (key, value, previousValue) {
- if (value) {
+ if (value || value === "") {
this.set('ug',[this.get('users'),value].join(' '));
}
var ug = this.get('ug');