AMBARI-7648 Supervisors link in the Storm service summary page does not do 
anything upon clicking. (ababiichuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/76e3bb4b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/76e3bb4b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/76e3bb4b

Branch: refs/heads/branch-alerts-dev
Commit: 76e3bb4ba1528173b6ed399fb2872c5a69c744f8
Parents: 5ce6ebf
Author: aBabiichuk <ababiic...@cybervisiontech.com>
Authored: Mon Oct 6 18:00:14 2014 +0300
Committer: aBabiichuk <ababiic...@cybervisiontech.com>
Committed: Mon Oct 6 18:00:23 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/templates/main/service/services/storm.hbs | 2 +-
 ambari-web/app/views/main/service/services/storm.js      | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/76e3bb4b/ambari-web/app/templates/main/service/services/storm.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/service/services/storm.hbs 
b/ambari-web/app/templates/main/service/services/storm.hbs
index 5382612..804adfd 100644
--- a/ambari-web/app/templates/main/service/services/storm.hbs
+++ b/ambari-web/app/templates/main/service/services/storm.hbs
@@ -19,7 +19,7 @@
 {{view App.SummaryMasterComponentsView 
mastersCompBinding="view.parentView.mastersObj"}}
 <tr>
   <td>
-    <a href="#" {{action filterHosts view.superVisorComponents.[0]}}>
+    <a href="#" {{action filterHosts view.filterComponent}}>
       {{t dashboard.services.storm.supervisors}}
     </a>
   </td>

http://git-wip-us.apache.org/repos/asf/ambari/blob/76e3bb4b/ambari-web/app/views/main/service/services/storm.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/services/storm.js 
b/ambari-web/app/views/main/service/services/storm.js
index 406c46f..3546cd0 100644
--- a/ambari-web/app/views/main/service/services/storm.js
+++ b/ambari-web/app/views/main/service/services/storm.js
@@ -23,6 +23,14 @@ App.MainDashboardServiceStormView = 
App.MainDashboardServiceView.extend({
   templateName: require('templates/main/service/services/storm'),
   serviceName: 'STORM',
 
+  /**
+   * this parameter is used to fiter hosts by component name
+   * used in mainHostController.filterByComponent() method
+   */
+  filterComponent: function() {
+    return Em.Object.create({componentName: 'SUPERVISOR'});
+  }.property(),
+
   freeSlotsPercentage: function() {
     return 
Math.round(this.get('service.freeSlots')/this.get('service.totalSlots')*100);
   }.property('service.freeSlots', 'service.totalSlots'),

Reply via email to