|
@@ -412,14 +412,18 @@ App.ClusterController = Em.Controller.extend({
|
|
},
|
|
},
|
|
|
|
|
|
loadViewInstancesSuccess: function (data) {
|
|
loadViewInstancesSuccess: function (data) {
|
|
- data.instances.forEach(function (instance) {
|
|
|
|
- var view = Em.Object.create({
|
|
|
|
- label: data.ViewInfo.label,
|
|
|
|
- viewName: instance.ViewInstanceInfo.view_name,
|
|
|
|
- instanceName: instance.ViewInstanceInfo.instance_name,
|
|
|
|
- href: "/views/" + instance.ViewInstanceInfo.view_name + "/" + instance.ViewInstanceInfo.instance_name
|
|
|
|
- });
|
|
|
|
- this.get('ambariViews').push(view);
|
|
|
|
|
|
+ var self = this;
|
|
|
|
+ data.versions.forEach(function (version) {
|
|
|
|
+ version.instances.forEach(function (instance) {
|
|
|
|
+ var view = Em.Object.create({
|
|
|
|
+ label: data.ViewInfo.view_name,
|
|
|
|
+ viewName: instance.ViewInstanceInfo.view_name,
|
|
|
|
+ instanceName: instance.ViewInstanceInfo.instance_name,
|
|
|
|
+ version: version.ViewVersionInfo.version,
|
|
|
|
+ href: "/views/" + instance.ViewInstanceInfo.view_name + "/" + version.ViewVersionInfo.version + "/" + instance.ViewInstanceInfo.instance_name
|
|
|
|
+ });
|
|
|
|
+ self.get('ambariViews').push(view);
|
|
|
|
+ }, this);
|
|
}, this);
|
|
}, this);
|
|
},
|
|
},
|
|
|
|
|