-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve guidance when there are no pipelines to show #953
Conversation
the deploy button shows up if we are able to find the sample pipeline template, which is configurable through our extension Constants. It goes straight to the template deploying page for the sample. |
16c94c6
to
e7ddd57
Compare
Awesome! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small comments, otherwise LGTM.
Thanks for adding this.
var sampleNamespace = Constants.SAMPLE_PIPELINE_TEMPLATE.namespace; | ||
DataService.get("templates", sampleName, {namespace: sampleNamespace}, {errorNotification: false}).then( | ||
function() { | ||
$scope.deploySampleURL = "project/" + $scope.projectName + "/create/fromtemplate?name=" + encodeURIComponent(sampleName) + "&namespace=" + encodeURIComponent(sampleNamespace); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use Navigate.fromTemplateURL
. Then this won't need to change when the parameter names change in #884
Add to Project | ||
<p ng-if="(project.metadata.name | canIAddToProject) && deploySampleURL"> | ||
<a ng-href="{{deploySampleURL}}" class="btn btn-lg btn-primary"> | ||
Deploy Sample Pipeline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "Create Sample Pipeline" better?
e7ddd57
to
482ae3a
Compare
updated based on feedback [merge] |
Evaluated for origin web console merge up to 482ae3a |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/777/) (Base Commit: 14fe437) |
Fixes #932