Skip to content

Commit c74ee1a

Browse files
author
OpenShift Bot
authored
Merge pull request #1286 from spadgett/create-secret-back
Merged by openshift-bot
2 parents 29ee6fc + bbad484 commit c74ee1a

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

app/scripts/controllers/addConfigVolume.js

-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ angular.module('openshiftConsole')
6363
includeProject: true
6464
});
6565

66-
// Return URL for creating secrets.
67-
$scope.returnURL = $location.url();
68-
6966
var humanizeKind = $filter('humanizeKind');
7067
$scope.groupByKind = function(object) {
7168
return humanizeKind(object.kind);

app/scripts/controllers/createSecret.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ angular.module('openshiftConsole')
4343
return;
4444
}
4545

46-
Navigate.toResourceList('secrets', $scope.projectName);
46+
$window.history.back();
4747
};
4848

4949
ProjectsService

app/views/add-config-volume.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h1>Add Config Files</h1>
6161
</span>
6262
<span ng-if="'secrets' | canI : 'create'">
6363
<span ng-if="'configmaps' | canI : 'create'" class="action-divider" aria-hidden="true">|</span>
64-
<a ng-href="project/{{project.metadata.name}}/create-secret?then={{returnURL | encodeURIComponent}}">Create Secret</a>
64+
<a ng-href="project/{{project.metadata.name}}/create-secret">Create Secret</a>
6565
</span>
6666
</div>
6767
<div class="help-block">

dist/scripts/scripts.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6991,7 +6991,7 @@ link:"project/" + d.projectName + "/browse/secrets"
69916991
title:"Create Secret"
69926992
} ];
69936993
var l = function() {
6994-
return c.then ? void b.url(c.then) :void j.toResourceList("secrets", d.projectName);
6994+
return c.then ? void b.url(c.then) :void e.history.back();
69956995
};
69966996
k.get(c.project).then(_.spread(function(b, e) {
69976997
return d.project = b, d.context = e, d.breadcrumbs[0].title = a("displayName")(b), h.canI("secrets", "create", c.project) ? (d.postCreateAction = function(a, b) {
@@ -9182,7 +9182,7 @@ kind:c.kind,
91829182
namespace:c.project,
91839183
subpage:"Add Config Files",
91849184
includeProject:!0
9185-
}), d.returnURL = b.url();
9185+
});
91869186
var p = a("humanizeKind");
91879187
d.groupByKind = function(a) {
91889188
return p(a.kind);

dist/scripts/templates.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
982982
"</span>\n" +
983983
"<span ng-if=\"'secrets' | canI : 'create'\">\n" +
984984
"<span ng-if=\"'configmaps' | canI : 'create'\" class=\"action-divider\" aria-hidden=\"true\">|</span>\n" +
985-
"<a ng-href=\"project/{{project.metadata.name}}/create-secret?then={{returnURL | encodeURIComponent}}\">Create Secret</a>\n" +
985+
"<a ng-href=\"project/{{project.metadata.name}}/create-secret\">Create Secret</a>\n" +
986986
"</span>\n" +
987987
"</div>\n" +
988988
"<div class=\"help-block\">\n" +

0 commit comments

Comments
 (0)