Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 e273668b7 -> 72438dc6b


AMBARI-19680: On Capacity Scheduler view, click * button for Node label Access 
the 2nd time should de-select all node labels, but it doesn't. (sangeetar)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/72438dc6
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/72438dc6
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/72438dc6

Branch: refs/heads/branch-2.5
Commit: 72438dc6b3a1adead373e761294a192a8b64398c
Parents: e273668
Author: Sangeeta Ravindran <sangee...@apache.org>
Authored: Sat Jan 28 00:11:46 2017 -0800
Committer: Sangeeta Ravindran <sangee...@apache.org>
Committed: Sat Jan 28 00:11:46 2017 -0800

----------------------------------------------------------------------
 .../capacity-scheduler/src/main/resources/ui/app/models/queue.js  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/72438dc6/contrib/views/capacity-scheduler/src/main/resources/ui/app/models/queue.js
----------------------------------------------------------------------
diff --git 
a/contrib/views/capacity-scheduler/src/main/resources/ui/app/models/queue.js 
b/contrib/views/capacity-scheduler/src/main/resources/ui/app/models/queue.js
index df0c684..9198aa5 100644
--- a/contrib/views/capacity-scheduler/src/main/resources/ui/app/models/queue.js
+++ b/contrib/views/capacity-scheduler/src/main/resources/ui/app/models/queue.js
@@ -106,6 +106,9 @@ App.Queue = DS.Model.extend({
           }.bind(this));
           this.notifyPropertyChange('labels');
       }
+      else {
+        this.get('labels').clear();
+      }
     }
 
     return this.get('_accessAllLabels');

Reply via email to