فهرست منبع

AMBARI-6352 Configuration Group host selection popup: IP address column shows empty on initial load, unless you start typing in the IP address column. (atkach)

atkach 11 سال پیش
والد
کامیت
eb0fc28f18
1فایلهای تغییر یافته به همراه2 افزوده شده و 16 حذف شده
  1. 2 16
      ambari-web/app/utils/hosts.js

+ 2 - 16
ambari-web/app/utils/hosts.js

@@ -101,23 +101,9 @@ module.exports = {
         didInsertElement: function(){
           var defaultFilterColumn = this.get('filterColumns').findProperty('selected');
           this.set('filterColumn', defaultFilterColumn);
-          this.initContent();
-        },
-        initContent: function () {
           initialHosts.setEach('filtered', true);
-          if (initialHosts.length > 100) {
-            lazyloading.run({
-              destination: this.get('parentView.availableHosts'),
-              source: initialHosts,
-              context: this.get('parentView'),
-              initSize: 50,
-              chunkSize: 100,
-              delay: 50
-            });
-          } else {
-            this.set('parentView.availableHosts', initialHosts);
-            this.set('parentView.isLoaded', true);
-          }
+          this.set('parentView.availableHosts', initialHosts);
+          this.set('parentView.isLoaded', true);
         },
         filterHosts: function () {
           var filterText = this.get('filterText');