Skip to content

Commit cf387f5

Browse files
author
OpenShift Bot
authored
Merge pull request #1360 from MarkDeMaria/promisesSecrets
Merged by openshift-bot
2 parents b3337f4 + 0dc72e9 commit cf387f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: app/scripts/controllers/secrets.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ angular.module('openshiftConsole')
2525
$scope.project = project;
2626
$scope.context = context;
2727

28-
DataService.list("secrets", context, function(secrets) {
28+
DataService.list("secrets", context).then(function(secrets) {
2929
$scope.secretsByType = SecretsService.groupSecretsByType(secrets);
3030
$scope.loaded = true;
3131
});

Diff for: dist/scripts/scripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6795,7 +6795,7 @@ c.unwatchAll(g);
67956795
b.projectName = a.project, b.secretsByType = {}, b.alerts = b.alerts || {}, c.getAlerts().forEach(function(a) {
67966796
b.alerts[a.name] = a.data;
67976797
}), c.clearAlerts(), e.get(a.project).then(_.spread(function(a, c) {
6798-
b.project = a, b.context = c, d.list("secrets", c, function(a) {
6798+
b.project = a, b.context = c, d.list("secrets", c).then(function(a) {
67996799
b.secretsByType = f.groupSecretsByType(a), b.loaded = !0;
68006800
});
68016801
}));

0 commit comments

Comments
 (0)