Browse Source

AMBARI-17410. Incorrect error message for invalid category in Host Combo Search Box (alexantonenko)

Alex Antonenko 9 years ago
parent
commit
8e2bd3f5a9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ambari-web/app/views/main/host/combo_search_box.js

+ 2 - 2
ambari-web/app/views/main/host/combo_search_box.js

@@ -195,7 +195,7 @@ App.MainHostComboSearchBoxView = Em.View.extend({
   },
   },
 
 
   showErrMsg: function(category) {
   showErrMsg: function(category) {
-    this.set('errMsg', category+ " " + Em.I18n.t('hosts.combo.search.invalidCategory'));
+    this.set('errMsg', category.attributes.value + " " + Em.I18n.t('hosts.combo.search.invalidCategory'));
   },
   },
 
 
   clearErrMsg: function() {
   clearErrMsg: function() {
@@ -347,4 +347,4 @@ App.MainHostComboSearchBoxView = Em.View.extend({
     }
     }
     return filterValue;
     return filterValue;
   }
   }
-});
+});