Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
72438dc6b3

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