-
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
Ensure kve does not render on browser builds if no envs to show #1970
Ensure kve does not render on browser builds if no envs to show #1970
Conversation
app/views/browse/build.html
Outdated
@@ -104,6 +104,7 @@ <h1 class="contains-actions"> | |||
Environment variables can be edited on the <a ng-href="{{build | configURLForResource}}?tab=environment">build configuration</a>. | |||
</p> | |||
<key-value-editor | |||
ng-if="(build | buildStrategy).env" |
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.
Should be checking size to catch empty arrays?
ng-if="(build | buildStrategy).env | size"
ea373e7
to
0c06867
Compare
app/views/browse/build.html
Outdated
@@ -104,6 +104,7 @@ <h1 class="contains-actions"> | |||
Environment variables can be edited on the <a ng-href="{{build | configURLForResource}}?tab=environment">build configuration</a>. | |||
</p> | |||
<key-value-editor |
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.
@spadgett thx, updated
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.
LGTM, but needs rebase
Hey @benjaminapetersen I think if you rebase this, we should be set to merge |
0c06867
to
6c73175
Compare
thanks @spadgett , rebased. |
[merge][severity: bug] |
Evaluated for origin web console merge up to 6c73175 |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin_web_console/193/) (Base Commit: f446b03) (PR Branch Commit: 6c73175) (Extended Tests: bug) |
related to #1438
There is already a good message
The build strategy had no environment variables defined.
, this just ensures thekve
doesn't render at all (rather than renders but is empty).@spadgett