Repository: ambari Updated Branches: refs/heads/trunk 50403914c -> c2907860e
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/c2907860 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c2907860 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c2907860 Branch: refs/heads/trunk Commit: c2907860e4fea65d272a680509ce656ac6e1f4f0 Parents: 5040391 Author: Sangeeta Ravindran <[email protected]> Authored: Sat Jan 28 00:23:56 2017 -0800 Committer: Sangeeta Ravindran <[email protected]> Committed: Sat Jan 28 00:23:56 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/c2907860/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');
