@@ -101,14 +101,14 @@ angular.module('openshiftConsole')
101
101
. then ( _ . spread ( function ( project , context ) {
102
102
$scope . project = project ;
103
103
104
- DataService . list ( "resourcequotas" , context , function ( quotas ) {
105
- $scope . quotas = _ . sortBy ( quotas . by ( "metadata.name" ) , "metadata.name" ) ;
104
+ DataService . list ( "resourcequotas" , context ) . then ( function ( resp ) {
105
+ $scope . quotas = _ . sortBy ( resp . by ( "metadata.name" ) , "metadata.name" ) ;
106
106
$scope . orderedTypesByQuota = orderTypes ( $scope . quotas ) ;
107
107
Logger . log ( "quotas" , $scope . quotas ) ;
108
108
} ) ;
109
109
110
- DataService . list ( "appliedclusterresourcequotas" , context , function ( quotas ) {
111
- $scope . clusterQuotas = _ . sortBy ( quotas . by ( "metadata.name" ) , "metadata.name" ) ;
110
+ DataService . list ( "appliedclusterresourcequotas" , context ) . then ( function ( resp ) {
111
+ $scope . clusterQuotas = _ . sortBy ( resp . by ( "metadata.name" ) , "metadata.name" ) ;
112
112
$scope . orderedTypesByClusterQuota = orderTypes ( $scope . clusterQuotas ) ;
113
113
$scope . namespaceUsageByClusterQuota = { } ;
114
114
_ . each ( $scope . clusterQuotas , function ( quota ) {
@@ -120,8 +120,8 @@ angular.module('openshiftConsole')
120
120
Logger . log ( "cluster quotas" , $scope . clusterQuotas ) ;
121
121
} ) ;
122
122
123
- DataService . list ( "limitranges" , context , function ( limitRanges ) {
124
- $scope . limitRanges = _ . sortBy ( limitRanges . by ( "metadata.name" ) , "metadata.name" ) ;
123
+ DataService . list ( "limitranges" , context ) . then ( function ( resp ) {
124
+ $scope . limitRanges = _ . sortBy ( resp . by ( "metadata.name" ) , "metadata.name" ) ;
125
125
$scope . emptyMessageLimitRanges = "There are no limit ranges set on this project." ;
126
126
// Convert to a sane format for a view to a build a table with rows per resource type
127
127
angular . forEach ( $scope . limitRanges , function ( limitRange ) {
0 commit comments