瀏覽代碼

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)

Sangeeta Ravindran 8 年之前
父節點
當前提交
72438dc6b3
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      contrib/views/capacity-scheduler/src/main/resources/ui/app/models/queue.js

+ 3 - 0
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');