ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject git commit: AMBARI-7648 Supervisors link in the Storm service summary page does not do anything upon clicking. (ababiichuk)
Date Mon, 06 Oct 2014 15:04:06 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-1.7.0 06ebeadff -> 662df7f26


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/662df7f2
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/662df7f2
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/662df7f2

Branch: refs/heads/branch-1.7.0
Commit: 662df7f26e5183d28c084c9c38f6c8f5aa2b28f4
Parents: 06ebead
Author: aBabiichuk <ababiichuk@cybervisiontech.com>
Authored: Mon Oct 6 18:02:06 2014 +0300
Committer: aBabiichuk <ababiichuk@cybervisiontech.com>
Committed: Mon Oct 6 18:02:06 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/662df7f2/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/662df7f2/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'),


Mime
View raw message