You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2014/08/28 19:50:03 UTC
[28/45] git commit: AMBARI-6967. Admin View: default login behavior
(route to Admin View, Cluster Dashboard, or Views Landing page). (yusaku)
AMBARI-6967. Admin View: default login behavior (route to Admin View, Cluster Dashboard, or Views Landing page). (yusaku)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e1634809
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e1634809
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e1634809
Branch: refs/heads/branch-alerts-dev
Commit: e1634809f0c4c6a6acfe1b2672b4ddfcaf2d5e92
Parents: 2051c64
Author: Yusaku Sako <yu...@hortonworks.com>
Authored: Wed Aug 27 23:09:59 2014 -0700
Committer: Yusaku Sako <yu...@hortonworks.com>
Committed: Wed Aug 27 23:09:59 2014 -0700
----------------------------------------------------------------------
.../controllers/global/cluster_controller.js | 44 --------------------
1 file changed, 44 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/e1634809/ambari-web/app/controllers/global/cluster_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/global/cluster_controller.js b/ambari-web/app/controllers/global/cluster_controller.js
index 246ad8b..bc09b0a 100644
--- a/ambari-web/app/controllers/global/cluster_controller.js
+++ b/ambari-web/app/controllers/global/cluster_controller.js
@@ -347,50 +347,6 @@ App.ClusterController = Em.Controller.extend({
}, callback)
},
- loadAmbariViews: function () {
- App.ajax.send({
- name: 'views.info',
- sender: this,
- success: 'loadAmbariViewsSuccess'
- });
- },
-
- loadAmbariViewsSuccess: function (data) {
- if (data.items.length) {
- App.ajax.send({
- name: 'views.instances',
- sender: this,
- success: 'loadViewInstancesSuccess'
- });
- } else {
- this.set('ambariViews', []);
- }
- },
-
- loadViewInstancesSuccess: function (data) {
- this.set('ambariViews', []);
- var self = this;
- data.items.forEach(function (view) {
- view.versions.forEach(function (version) {
- version.instances.forEach(function (instance) {
- var current_instance = Em.Object.create({
- iconPath: instance.ViewInstanceInfo.icon_path || "/img/ambari-view-default.png",
- label: instance.ViewInstanceInfo.label || version.ViewVersionInfo.label || instance.ViewInstanceInfo.view_name,
- visible: instance.ViewInstanceInfo.visible || false,
- version: instance.ViewInstanceInfo.version,
- description: instance.ViewInstanceInfo.description || Em.I18n.t('views.main.instance.noDescription'),
- viewName: instance.ViewInstanceInfo.view_name,
- instanceName: instance.ViewInstanceInfo.instance_name,
- href: instance.ViewInstanceInfo.context_path
- });
- if( current_instance.visible){
- self.get('ambariViews').pushObject(current_instance);
- }
- }, this);
- }, this);
- }, this);
- },
-
/**
*
* @param callback