Browse Source

AMBARI-4920. Mirroring: spinners keep spinning. (akovalenko)

Aleksandr Kovalenko 11 years ago
parent
commit
660bf2c53d
1 changed files with 2 additions and 10 deletions
  1. 2 10
      ambari-web/app/views/main/mirroring/datasets_view.js

+ 2 - 10
ambari-web/app/views/main/mirroring/datasets_view.js

@@ -25,20 +25,12 @@ App.MainDatasetsView = App.TableView.extend({
   templateName: require('templates/main/mirroring/datasets'),
   templateName: require('templates/main/mirroring/datasets'),
   content: function () {
   content: function () {
     return this.get('controller.datasets');
     return this.get('controller.datasets');
-  }.property('controller.datasets'),
+  }.property('controller.datasets.length'),
 
 
   didInsertElement: function () {
   didInsertElement: function () {
-    this.set('filteredContent', this.get('controller.datasets'));
+    this.filter();
   },
   },
 
 
-  jobs: function () {
-    return App.DataSetJob.find().slice(0, 2);
-  }.property(),
-
-  targetClusters: function () {
-    return this.get('controller.targetClusters');
-  }.property('controller.targetClusters'),
-
   sortView: sort.wrapperView,
   sortView: sort.wrapperView,
   nameSort: sort.fieldView.extend({
   nameSort: sort.fieldView.extend({
     column: '1',
     column: '1',