Kaynağa Gözat

AMBARI-7888 Config history table filter strange behavior. (ababiichuk)

aBabiichuk 10 yıl önce
ebeveyn
işleme
12df0682d8

+ 1 - 0
ambari-web/app/messages.js

@@ -2071,6 +2071,7 @@ Em.I18n.translations = {
   'tableView.filters.paginationInfo': '{0} - {1} of {2}',
   'tableView.filters.clearAllFilters': 'clear filters',
   'tableView.filters.showAll': 'Show All',
+  'tableView.filters.filteredConfigVersionInfo': '{0} of {1} versions showing',
 
   'jobs.type':'Jobs Type',
   'jobs.type.hive':'Hive',

+ 1 - 0
ambari-web/app/mixins/common/table_server_mixin.js

@@ -117,6 +117,7 @@ App.TableServerMixin = Em.Mixin.create({
           });
         } else if (filter.type === 'string') {
           property.value = this.getRegExp(filter.value);
+          filterParams.push(property);
         } else {
           property.value = filter.value;
           filterParams.push(property);

+ 1 - 1
ambari-web/app/views/main/dashboard/config_history_view.js

@@ -53,7 +53,7 @@ App.MainConfigHistoryView = App.TableView.extend({
    * @returns {String}
    */
   filteredContentInfo: function () {
-    return this.t('hosts.filters.filteredHostsInfo').format(this.get('filteredCount'), this.get('totalCount'));
+    return this.t('tableView.filters.filteredConfigVersionInfo').format(this.get('filteredCount'), this.get('totalCount'));
   }.property('filteredCount', 'totalCount'),
 
   /**