Commit f86ac3ee by Jason Song Committed by GitHub

Merge pull request #399 from lepdou/search_item

bugfix: not latest release instances group by release id
parents 343bb1d0 420305d0
...@@ -253,11 +253,11 @@ directive_module.directive('apollonspanel', ...@@ -253,11 +253,11 @@ directive_module.directive('apollonspanel',
if (configs.length > 0) { if (configs.length > 0) {
configs.forEach(function (instanceConfig) { configs.forEach(function (instanceConfig) {
var release = instanceConfig.release; var release = instanceConfig.release;
if (!groupedInstances[release.name]) { if (!groupedInstances[release.id]) {
groupedInstances[release.name] = []; groupedInstances[release.id] = [];
notLatestReleases.push(release); notLatestReleases.push(release);
} }
groupedInstances[release.name].push(instance); groupedInstances[release.id].push(instance);
}) })
} }
}); });
......
...@@ -429,7 +429,7 @@ ...@@ -429,7 +429,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <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.appId"></td>
<td width="25%" ng-bind="instance.clusterName"></td> <td width="25%" ng-bind="instance.clusterName"></td>
<td width="25%" ng-bind="instance.dataCenter"></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