Commit 420305d0 by zhangle

bugfix: not latest release instances group by release id

parent ee00c5fa
......@@ -253,11 +253,11 @@ directive_module.directive('apollonspanel',
if (configs.length > 0) {
configs.forEach(function (instanceConfig) {
var release = instanceConfig.release;
if (!groupedInstances[release.name]) {
groupedInstances[release.name] = [];
if (!groupedInstances[release.id]) {
groupedInstances[release.id] = [];
notLatestReleases.push(release);
}
groupedInstances[release.name].push(instance);
groupedInstances[release.id].push(instance);
})
}
});
......
......@@ -429,7 +429,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="instance in namespace.notLatestReleaseInstances[release.name]">
<tr ng-repeat="instance in namespace.notLatestReleaseInstances[release.id]">
<td width="25%" ng-bind="instance.appId"></td>
<td width="25%" ng-bind="instance.clusterName"></td>
<td width="25%" ng-bind="instance.dataCenter"></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment