Skip to content

Commit dba8721

Browse files
committed
Fix sample pipeline button
We were calling a removed Navigate service API to get the template URL, which caused a runtime error.
1 parent 95fab83 commit dba8721

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/scripts/controllers/pipelines.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ angular.module('openshiftConsole')
119119
var sampleName = Constants.SAMPLE_PIPELINE_TEMPLATE.name;
120120
var sampleNamespace = Constants.SAMPLE_PIPELINE_TEMPLATE.namespace;
121121
DataService.get("templates", sampleName, {namespace: sampleNamespace}, {errorNotification: false}).then(
122-
function() {
123-
$scope.createSampleURL = Navigate.fromTemplateURL($scope.projectName, sampleName, sampleNamespace);
122+
function(template) {
123+
$scope.createSampleURL = Navigate.createFromTemplateURL(template, $scope.projectName);
124124
});
125125
}
126126
update();

dist/scripts/scripts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5623,8 +5623,8 @@ h.get("templates", b, {
56235623
namespace:f
56245624
}, {
56255625
errorNotification:!1
5626-
}).then(function() {
5627-
c.createSampleURL = e.fromTemplateURL(c.projectName, b, f);
5626+
}).then(function(a) {
5627+
c.createSampleURL = e.createFromTemplateURL(a, c.projectName);
56285628
});
56295629
}
56305630
p();

0 commit comments

Comments
 (0)