Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
420305d0
Commit
420305d0
authored
Aug 31, 2016
by
zhangle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: not latest release instances group by release id
parent
ee00c5fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
namespace-panel-directive.js
...ces/static/scripts/directive/namespace-panel-directive.js
+3
-3
namespace-panel.html
...ain/resources/static/views/component/namespace-panel.html
+1
-1
No files found.
apollo-portal/src/main/resources/static/scripts/directive/namespace-panel-directive.js
View file @
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
);
})
})
}
}
});
});
...
...
apollo-portal/src/main/resources/static/views/component/namespace-panel.html
View file @
420305d0
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment