Skip to content

Commit b94910f

Browse files
author
OpenShift Bot
authoredNov 29, 2016
Merge pull request #937 from spadgett/monitoring-page-type-order
Merged by openshift-bot
2 parents f892e0a + b4aa2b3 commit b94910f

File tree

4 files changed

+223
-226
lines changed

4 files changed

+223
-226
lines changed
 

‎app/scripts/controllers/monitoring.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,21 @@ angular.module('openshiftConsole')
3535

3636
$scope.kinds = [
3737
{
38-
kind: "Pods"
38+
kind: "All"
3939
},
4040
{
41-
kind: "Builds"
41+
kind: "Pods"
4242
},
4343
{
4444
label: "Deployments",
4545
kind: "ReplicationControllers"
46+
},
47+
{
48+
kind: "Builds"
4649
}
4750
];
48-
var defaultKind = {
49-
kind: "All"
50-
};
51-
$scope.kinds.push(defaultKind);
5251
$scope.kindSelector = {
53-
selected: _.find($scope.kinds, {kind: $routeParams.kind}) || defaultKind
52+
selected: _.find($scope.kinds, {kind: $routeParams.kind}) || _.head($scope.kinds)
5453
};
5554

5655
$scope.logOptions = {

0 commit comments

Comments
 (0)
Please sign in to comment.